diff --git a/src/backend/storage/ipc/shmem.c b/src/backend/storage/ipc/shmem.c index 6037f469acd..0e827344462 100644 --- a/src/backend/storage/ipc/shmem.c +++ b/src/backend/storage/ipc/shmem.c @@ -1131,12 +1131,8 @@ ShmemInitStruct(const char *name, Size size, bool *foundPtr) LWLockAcquire(ShmemIndexLock, LW_EXCLUSIVE); - /* - * During postmaster startup, look up the existing entry if any. - */ - *foundPtr = false; - if (IsUnderPostmaster) - *foundPtr = AttachShmemIndexEntry(&request, true); + /* Look up the existing entry if any */ + *foundPtr = AttachShmemIndexEntry(&request, true); /* Initialize it if not found */ if (!*foundPtr)