diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 9548caa0aeb..39fa5641914 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -4672,6 +4672,9 @@ SubPostmasterMain(int argc, char *argv[]) { int shmem_slot; + /* do this as early as possible; in particular, before InitProcess() */ + IsBackgroundWorker = true; + /* Close the postmaster's sockets */ ClosePostmasterPorts(false);