diff --git a/src/backend/storage/ipc/shmem.c b/src/backend/storage/ipc/shmem.c index 720d30e8f6f..99cf27216ca 100644 --- a/src/backend/storage/ipc/shmem.c +++ b/src/backend/storage/ipc/shmem.c @@ -1379,7 +1379,7 @@ pg_get_shmem_allocations_numa(PG_FUNCTION_ARGS) * If the shared segment was allocated using huge pages, returns the size of * a huge page. Otherwise returns the size of regular memory page. * - * This should be used only after the server is started. + * This should be used only after shared memory has been initialized. */ Size pg_get_shmem_pagesize(void) @@ -1394,7 +1394,6 @@ pg_get_shmem_pagesize(void) os_page_size = sysconf(_SC_PAGESIZE); #endif - Assert(IsUnderPostmaster); Assert(huge_pages_status != HUGE_PAGES_UNKNOWN); if (huge_pages_status == HUGE_PAGES_ON)