Hi Mark,
Thank you very much for your message. Indeed, DISTINCT ON is quite a handy PostgreSQL extension to the SQL standard. It's definitely possible to emulate it in trivial cases, but there are also a few non-trivial ones when you mix unions / order by / window functions, which must still produce the correct results.
There's a pending feature request on the roadmap:
But given the non-triviality of this emulation (both in general, as well as in jOOQ's internals), I cannot make any promises yet as to when this can be supported.
In order to get vendor-agnostic functionality here, I suspect you'll need to emulate the clause manually.
Hope this helps,
Lukas