Should we also initialize the shared memory GUCs in bootstrap and single-user mode? I think I missed this in bd17880.
Nathan diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 48615c0ebc..4c4cf44871 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -324,6 +324,12 @@ BootstrapModeMain(int argc, char *argv[], bool check_only) InitializeMaxBackends(); + /* + * Initialize runtime-computed GUCs that depend on the amount of shared + * memory required. + */ + InitializeShmemGUCs(); + CreateSharedMemoryAndSemaphores(); /* diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 0775abe35d..cae0b079b9 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -3978,6 +3978,12 @@ PostgresSingleUserMain(int argc, char *argv[], /* Initialize MaxBackends */ InitializeMaxBackends(); + /* + * Initialize runtime-computed GUCs that depend on the amount of shared + * memory required. + */ + InitializeShmemGUCs(); + CreateSharedMemoryAndSemaphores(); /*