From 9efaf38fb5ad67d53b2bc7d7cf7b47b4ffd6bad5 Mon Sep 17 00:00:00 2001 From: Ivan Kovmir Date: Thu, 26 Jan 2023 14:53:08 +0100 Subject: [PATCH] Fix #4. Start the extension iff the GUC variable is not false --- pg_show_plans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_show_plans.c b/pg_show_plans.c index bc7f336..c3bd897 100644 --- a/pg_show_plans.c +++ b/pg_show_plans.c @@ -249,7 +249,7 @@ pgsp_shmem_startup(void) SpinLockInit(&pgsp->elock); /* Set the initial value for is_enable. */ - pgsp->is_enable = true; + pgsp->is_enable = pgsp_enable; pgsp->plan_format = plan_format; }