Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add duckdb.log_pg_subplans GUC setting #529

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Y--
Copy link
Collaborator

@Y-- Y-- commented Jan 13, 2025

When enabled, dump the query and plan executed by PG during DuckDB execution.

Example:

y=# SET duckdb.log_pg_subplans = true;
SET
y=# SET duckdb.force_execution = true;
SET
y=# select count(*) from f;
INFO:  Query:
SELECT COUNT(*) FROM public.f
INFO:  Plan:
Aggregate  (cost=1693.00..1693.01 rows=1 width=8)
  ->  Seq Scan on f  (cost=0.00..1443.00 rows=100000 width=0)

 count
--------
 100000
(1 row)

@Y-- Y-- force-pushed the yl/explain-pg-queries branch 2 times, most recently from 9b2194c to 85d0f0b Compare January 13, 2025 11:01
When enabled, dump the query and plan executed by PG during DuckDB execution
@Y-- Y-- force-pushed the yl/explain-pg-queries branch from 85d0f0b to fb9b3fe Compare January 13, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant