OSDN Git Service

Fix GUC context of a custom variable
authorKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 25 Nov 2021 11:15:01 +0000 (20:15 +0900)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Mon, 17 Jan 2022 02:47:20 +0000 (11:47 +0900)
The new GUC variable pg_store_plans.plan_storage is intended to be a
PGC_POSTMASTER. Fix it.

pg_store_plans.c

index 526617f..629eb7e 100644 (file)
@@ -419,7 +419,7 @@ _PG_init(void)
                                                         &plan_storage,
                                                         PLAN_STORAGE_FILE,
                                                         plan_storage_options,
-                                                        PGC_USERSET,
+                                                        PGC_POSTMASTER,
                                                         0,
                                                         NULL,
                                                         NULL,