Skip to content
Discussion options

You must be logged in to vote

I think there are three different ways to run DuckPGQ queries in Postgres:

  1. Run DuckPGQ queries in Postgres directly
    This is not possible because Postgres currently doesn't allow extensions to change Postgres parser
  2. Create a Postgres UDF mooncake.DuckPGQ("<query>") and ask users to pass DuckPGQ queries as string to the UDF
    This 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
  3. Expose DuckDB sessions from Postgres
    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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tsilvs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants