Replies: 1 comment
-
Thanks for opening this as a discussion! 🎉 As far as I know, we have to maintain Postgres-compatible syntax, as we cannot modify or add new rules to the Postgres parser without forking Postgres. So we have to work within the restrictions of what is allowed by Postgres. As such, directly supporting syntax that DuckDB adds is not possible. While we would like to avoid this whenever possible, the easiest way to allow DuckDB-specific syntax would be through something like a SELECT * FROM duckdb.query('
PIVOT Cities
ON Year
USING sum(Population)
') AS (country text, name text, "2000" integer, "2010" integer, "2020" integer); The tricky thing with This doesn't necessarily apply to every feature of DuckDB - we would like as many features as possible to integrate natively - but ultimately it does need to be a query that Postgres can parse. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
First of all nice work and good luck further!
I have just installed pg_duckdb on PostgreSQL 16.4 and while some specific duckdb functions work when the execution is enabled, some syntax is not recognized, such as pivot, qualify, range etc. Will these features of DuckDB be added to the extension in the future and made available on PostgreSQL?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions