Skip to content

Commit 40564ad

Browse files
committed
Fix config reload crash for <=14
SysLoggerMain() does not have shared memory acess, therefore crashes on attempts to access it.
1 parent 43e65a9 commit 40564ad

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pg_show_plans.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ _PG_init(void)
159159
NULL,
160160
&start_enabled,
161161
true,
162+
#if PG_VERSION_NUM >= 150000
162163
PGC_USERSET,
164+
#else
165+
PGC_POSTMASTER,
166+
#endif
163167
0,
164168
NULL, set_state, show_state);
165169
DefineCustomIntVariable("pg_show_plans.max_plan_length",
@@ -183,7 +187,11 @@ _PG_init(void)
183187
&plan_format,
184188
EXPLAIN_FORMAT_TEXT,
185189
plan_formats,
190+
#if PG_VERSION_NUM >= 150000
186191
PGC_USERSET,
192+
#else
193+
PGC_POSTMASTER,
194+
#endif
187195
0,
188196
NULL, prop_format_to_shmem, show_format);
189197

0 commit comments

Comments
 (0)