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 pg_show_plans.skip_queryids guc #2

Open
wants to merge 3 commits into
base: add-pg_show_plans.startup_enable-GUC
Choose a base branch
from

Conversation

legrandlegrand
Copy link
Owner

@legrandlegrand legrandlegrand commented Apr 15, 2020

this is to try a new guc: pg_show_plans.skip_queryids,
that contains a list of queryids that won't have their plan displayed.

testing:

do $$ declare i int;j int; begin for i in 1..1000000 loop select 1 into j; end loop; end; $$;

initial configuration:
explain (costs off)
pg_show_plans_enable
pgss.track='all'
pgsp.skip_queryids not set (NULL)

			skip_queryids	NULL	1(*)	10(**)
select 1+1 				2300	2350	2350
select 1				2300	1570	1570
	pgss.track='none'		2040
	pg_show_plans_disable		1220

(*) skip_queryids containing queryid of "select 1" statement.
(**) skip_queryids containing queryid of "select 1" statement + 9 others

Impact on non skipped queries like "select 1+1" stay very low (2350 ms / 2300 ms)

@legrandlegrand legrandlegrand changed the title skip queryid POC Add pg_show_plans.skip_queryids GUC Apr 16, 2020
@legrandlegrand legrandlegrand changed the title Add pg_show_plans.skip_queryids GUC Add pg_show_plans.skip_queryids guc Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant