How does duckdb execution work? #640
Replies: 1 comment 4 replies
-
From the readme:
If you're curious about the details, this function determines if a query needs duckdb execution: pg_duckdb/src/pgduckdb_hooks.cpp Lines 126 to 128 in 66cb6e6 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Curious how pg_duckdb "pushes" queries to use duckdb execution (yes, by setting duckdb.force_execution, but how does that work?). For example, the definition for @[email protected]_parquet at https://github.com/duckdb/pg_duckdb/blob/main/sql/pg_duckdb--0.1.0.sql#L18 seems to only raise exceptions when duckdb execution is off. So if it is turned on, where/what calls the duckdb implementation?
Seems like by using hooks? I see some initializations,
pg_duckdb/src/pgduckdb_hooks.cpp
Line 424 in 66cb6e6
Is the BGW always running in the background to check all queries?
pg_duckdb/src/pgduckdb_background_worker.cpp
Line 115 in 66cb6e6
Greatly appreciate if anyone can help me understand better!
Beta Was this translation helpful? Give feedback.
All reactions