DuckPGQ support?
#153
-
Having DuckDB integrated in the module, can we run DuckPGQ queries as well? |
Beta Was this translation helpful? Give feedback.
Answered by
dpxcc
Jun 5, 2025
Replies: 1 comment
-
I think there are three different ways to run DuckPGQ queries in Postgres:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tsilvs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think there are three different ways to run DuckPGQ queries in Postgres:
This is not possible because Postgres currently doesn't allow extensions to change Postgres parser
mooncake.DuckPGQ("<query>")
and ask users to pass DuckPGQ queries as string to the UDFThis is doable but not very user-friendly. Also, this won't support prepared statements which are commonly used by apps to interact with the database
We are actually exploring integrating DuckDB-UI (https://duckdb.org/2025/03/12/duckdb-ui.html) from Postgres to allow native DuckDB queries, including DuckPGQ queries