|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "miscadmin.h"#include "pgstat.h"#include "storage/dsm.h"#include "storage/ipc.h"#include "storage/lock.h"#include "storage/pg_shmem.h"#include "storage/proc.h"#include "storage/shmem_internal.h"#include "storage/subsystems.h"#include "utils/guc.h"#include "storage/subsystemlist.h"
Go to the source code of this file.
Macros | |
| #define | PG_SHMEM_SUBSYSTEM(subsystem_callbacks) RegisterShmemCallbacks(&(subsystem_callbacks)); |
Functions | |
| void | RequestAddinShmemSpace (Size size) |
| Size | CalculateShmemSize (void) |
| void | CreateSharedMemoryAndSemaphores (void) |
| void | RegisterBuiltinShmemCallbacks (void) |
| void | InitializeShmemGUCs (void) |
Variables | |
| int | shared_memory_type = DEFAULT_SHARED_MEMORY_TYPE |
| shmem_startup_hook_type | shmem_startup_hook = NULL |
| static Size | total_addin_request = 0 |
| #define PG_SHMEM_SUBSYSTEM | ( | subsystem_callbacks | ) | RegisterShmemCallbacks(&(subsystem_callbacks)); |
Definition at line 57 of file ipci.c.
References add_size(), ShmemGetRequestedSize(), and total_addin_request.
Referenced by CreateSharedMemoryAndSemaphores(), and InitializeShmemGUCs().
Definition at line 120 of file ipci.c.
References Assert, CalculateShmemSize(), DEBUG3, dsm_postmaster_startup(), elog, fb(), GetConfigOption(), InitShmemAllocator(), IsUnderPostmaster, PGSharedMemoryCreate(), shmem_startup_hook, and ShmemInitRequested().
Referenced by BootstrapModeMain(), PostgresSingleUserMain(), PostmasterMain(), and PostmasterStateMachine().
Definition at line 189 of file ipci.c.
References add_size(), buf, CalculateShmemSize(), fb(), GetHugePageSize(), PGC_INTERNAL, PGC_S_DYNAMIC_DEFAULT, ProcGlobalSemas(), SetConfigOption(), and sprintf.
Referenced by PostgresSingleUserMain(), and PostmasterMain().
Definition at line 168 of file ipci.c.
Referenced by BootstrapModeMain(), PostgresSingleUserMain(), and PostmasterMain().
Definition at line 45 of file ipci.c.
References add_size(), elog, FATAL, process_shmem_requests_in_progress, and total_addin_request.
| int shared_memory_type = DEFAULT_SHARED_MEMORY_TYPE |
Definition at line 29 of file ipci.c.
Referenced by PGSharedMemoryCreate().
| shmem_startup_hook_type shmem_startup_hook = NULL |
Definition at line 31 of file ipci.c.
Referenced by CreateSharedMemoryAndSemaphores().
|
static |
Definition at line 33 of file ipci.c.
Referenced by CalculateShmemSize(), and RequestAddinShmemSpace().