Skip to content

Commit

Permalink
Fix compilation issue with PG<15. Thanks to Devrim Gunduz for the rep…
Browse files Browse the repository at this point in the history
…ort.
  • Loading branch information
darold committed Jan 30, 2024
1 parent ede603a commit 553b4e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions credcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
Expand Down

0 comments on commit 553b4e9

Please sign in to comment.