48 elog(
FATAL,
"cannot request additional shared memory outside shmem_request_hook");
77 size =
add_size(size, 8192 - (size % 8192));
130 elog(
DEBUG3,
"invoking IpcMemoryCreate(size=%zu)", size);
174#define PG_SHMEM_SUBSYSTEM(subsystem_callbacks) \
175 RegisterShmemCallbacks(&(subsystem_callbacks));
179#undef PG_SHMEM_SUBSYSTEM
#define Assert(condition)
void dsm_postmaster_startup(PGShmemHeader *shim)
void SetConfigOption(const char *name, const char *value, GucContext context, GucSource source)
const char * GetConfigOption(const char *name, bool missing_ok, bool restrict_privileged)
void(* shmem_startup_hook_type)(void)
static Size total_addin_request
shmem_startup_hook_type shmem_startup_hook
void RegisterBuiltinShmemCallbacks(void)
void RequestAddinShmemSpace(Size size)
Size CalculateShmemSize(void)
void InitializeShmemGUCs(void)
void CreateSharedMemoryAndSemaphores(void)
bool process_shmem_requests_in_progress
#define DEFAULT_SHARED_MEMORY_TYPE
static char buf[DEFAULT_XLOG_SEG_SIZE]
void InitializeFastPathLocks(void)
void InitShmemAllocator(PGShmemHeader *seghdr)
Size add_size(Size s1, Size s2)
void ShmemInitRequested(void)
size_t ShmemGetRequestedSize(void)
int ProcGlobalSemas(void)
PGShmemHeader * PGSharedMemoryCreate(Size size, PGShmemHeader **shim)
void GetHugePageSize(Size *hugepagesize, int *mmap_flags)