Duckdb should be compatible with postgres to a high degree.
https://duckdb.org/why_duckdb.html
> SQL Parser: We use the PostgreSQL parser that was repackaged as a stand-alone library. The translation to our own parse tree is inspired by Peloton.
https://duckdb.org/why_duckdb.html
> SQL Parser: We use the PostgreSQL parser that was repackaged as a stand-alone library. The translation to our own parse tree is inspired by Peloton.