From 553b4e9a5c81ab699e2644d7ad79a8cf18db32e9 Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Tue, 30 Jan 2024 15:14:44 +0100 Subject: [PATCH] Fix compilation issue with PG<15. Thanks to Devrim Gunduz for the report. --- credcheck.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/credcheck.c b/credcheck.c index bffbb1c..b610fa1 100644 --- a/credcheck.c +++ b/credcheck.c @@ -1328,8 +1328,6 @@ _PG_init(void) NULL, NULL); - MarkGUCPrefixReserved("credcheck"); - #if PG_VERSION_NUM < 150000 /* * Request additional shared resources. (These are no-ops if we're not in @@ -1340,6 +1338,9 @@ _PG_init(void) RequestNamedLWLockTranche(PGPH_TRANCHE_NAME, 1); RequestAddinShmemSpace(pgaf_memsize()); RequestNamedLWLockTranche(PGAF_TRANCHE_NAME, 1); +#else + MarkGUCPrefixReserved("credcheck"); + #endif /* Install hooks */