|
PostgreSQL Source Code git master
|

Go to the source code of this file.
Macros | |
| #define | PG_ENSURE_ERROR_CLEANUP(cleanup_function, arg) |
| #define | PG_END_ENSURE_ERROR_CLEANUP(cleanup_function, arg) |
Typedefs | |
| typedef void(* | pg_on_exit_callback) (int code, Datum arg) |
| typedef void(* | shmem_startup_hook_type) (void) |
Variables | |
| PGDLLIMPORT bool | proc_exit_inprogress |
| PGDLLIMPORT bool | shmem_exit_inprogress |
| PGDLLIMPORT shmem_startup_hook_type | shmem_startup_hook |
| #define PG_END_ENSURE_ERROR_CLEANUP | ( | cleanup_function, | |
| arg | |||
| ) |
| #define PG_ENSURE_ERROR_CLEANUP | ( | cleanup_function, | |
| arg | |||
| ) |
|
extern |
Definition at line 344 of file ipc.c.
References ONEXIT::arg, arg, atexit_callback(), atexit_callback_setup, before_shmem_exit_index, before_shmem_exit_list, ereport, errcode(), errmsg_internal(), FATAL, fb(), ONEXIT::function, function, and MAX_ON_EXITS.
Referenced by ApplyLauncherMain(), AtEOXact_Namespace(), autoprewarm_main(), AuxiliaryProcessMainCommon(), BecomeRegisteredListener(), CheckpointerMain(), InitializeLogRepWorker(), InitPostgres(), InitTemporaryFileAccess(), injection_points_set_local(), LoadArchiveLibrary(), LockGXact(), logicalrep_worker_attach(), MarkAsPreparing(), ParallelApplyWorkerMain(), ParallelWorkerMain(), pgaio_init_backend(), pgstat_initialize(), register_persistent_abort_backup_handler(), ReplicationSlotInitialize(), and ReplSlotSyncWorkerMain().
Definition at line 87 of file ipci.c.
References add_size(), AioShmemSize(), ApplyLauncherShmemSize(), AsyncShmemSize(), AutoVacuumShmemSize(), BackendStatusShmemSize(), BackgroundWorkerShmemSize(), BTreeShmemSize(), BufferManagerShmemSize(), CheckpointerShmemSize(), CLOGShmemSize(), CommitTsShmemSize(), dsm_estimate_size(), DSMRegistryShmemSize(), hash_estimate_size(), InjectionPointShmemSize(), LockManagerShmemSize(), LogicalDecodingCtlShmemSize(), LWLockShmemSize(), MultiXactShmemSize(), PgArchShmemSize(), PMSignalShmemSize(), PredicateLockShmemSize(), ProcArrayShmemSize(), ProcGlobalShmemSize(), ProcSignalShmemSize(), ReplicationOriginShmemSize(), ReplicationSlotsShmemSize(), SharedInvalShmemSize(), SHMEM_INDEX_SIZE, SlotSyncShmemSize(), StatsShmemSize(), SUBTRANSShmemSize(), SyncScanShmemSize(), total_addin_request, TwoPhaseShmemSize(), VarsupShmemSize(), WaitEventCustomShmemSize(), WaitLSNShmemSize(), WalRcvShmemSize(), WalSndShmemSize(), WalSummarizerShmemSize(), XLogPrefetchShmemSize(), XLogRecoveryShmemSize(), and XLOGShmemSize().
Referenced by CreateSharedMemoryAndSemaphores(), and InitializeShmemGUCs().
|
extern |
Definition at line 401 of file ipc.c.
References arg, before_shmem_exit_index, before_shmem_exit_list, elog, ERROR, fb(), and function.
Definition at line 439 of file ipc.c.
References before_shmem_exit_index, elog, FATAL, and on_shmem_exit_index.
Referenced by BackendInitialize().
Definition at line 191 of file ipci.c.
References Assert, CalculateShmemSize(), CreateOrAttachShmemStructs(), DEBUG3, dsm_postmaster_startup(), elog, fb(), GetConfigOption(), InitShmemAccess(), InitShmemAllocation(), IsUnderPostmaster, PGSharedMemoryCreate(), and shmem_startup_hook.
Referenced by BootstrapModeMain(), PostgresSingleUserMain(), PostmasterMain(), and PostmasterStateMachine().
Definition at line 342 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 423 of file ipc.c.
References before_shmem_exit_index, on_proc_exit_index, on_shmem_exit_index, and reset_on_dsm_detach().
Referenced by InitPostmasterChild().
|
extern |
Definition at line 316 of file ipc.c.
References ONEXIT::arg, arg, atexit_callback(), atexit_callback_setup, ereport, errcode(), errmsg_internal(), FATAL, fb(), ONEXIT::function, function, MAX_ON_EXITS, on_proc_exit_index, and on_proc_exit_list.
Referenced by CreateLockFile(), InitCatCache(), llvm_session_initialize(), PostgresMain(), PostmasterMain(), pq_init(), select_perl_context(), sepgsql_avc_init(), and smgrinit().
|
extern |
Definition at line 372 of file ipc.c.
References ONEXIT::arg, arg, atexit_callback(), atexit_callback_setup, ereport, errcode(), errmsg_internal(), FATAL, fb(), ONEXIT::function, function, MAX_ON_EXITS, on_shmem_exit_index, and on_shmem_exit_list.
Referenced by AutoVacWorkerMain(), CreateAuxProcessResourceOwner(), dsm_postmaster_startup(), InitAuxiliaryProcess(), InitBufferManagerAccess(), InitProcess(), InitProcessPhase2(), InitWalSenderSlot(), InternalIpcMemoryCreate(), pgaio_worker_register(), PgArchiverMain(), PGReserveSemaphores(), PGSharedMemoryCreate(), pgss_shmem_startup(), pgstat_beinit(), ProcSignalInit(), RegisterPostmasterChildActive(), replorigin_session_setup(), SharedInvalBackendInit(), StartupProcessMain(), WalReceiverMain(), and WalSummarizerMain().
|
extern |
Definition at line 105 of file ipc.c.
References AmAutoVacuumWorkerProcess, DEBUG3, elog, fb(), mkdir, MyProcPid, PANIC, proc_exit_prepare(), S_IRWXG, S_IRWXO, S_IRWXU, and snprintf.
Referenced by apply_worker_exit(), ApplyWorkerMain(), auth_failed(), AutoVacLauncherMain(), AutoVacLauncherShutdown(), AutoVacWorkerMain(), BackendInitialize(), BackgroundWorkerMain(), BootstrapModeMain(), CheckerModeMain(), CheckpointerMain(), DisableSubscriptionAndExit(), errfinish(), ExitPostmaster(), FinishSyncWorker(), InitializeLogRepWorker(), IoWorkerMain(), maybe_reread_subscription(), PerformWalRecovery(), PgArchiverMain(), PostgresMain(), PostgresSingleUserMain(), PreRestoreCommand(), ProcessInterrupts(), ProcessMainLoopInterrupts(), ProcessParallelApplyInterrupts(), ProcessPgArchInterrupts(), ProcessRepliesIfAny(), ProcessSlotSyncInterrupts(), ProcessStandbyMessage(), ProcessStartupProcInterrupts(), ProcessSyncingTablesForApply(), ProcessWalSummarizerInterrupts(), ReplSlotSyncWorkerMain(), RestoreArchivedFile(), slotsync_reread_config(), StartLogicalReplication(), StartReplication(), StartupProcessMain(), StartupProcShutdownHandler(), SysLoggerMain(), test_shm_mq_main(), WaitEventSetWaitBlock(), WalRcvWaitForStartPosition(), WalReceiverMain(), WalSndDone(), WalSndErrorCleanup(), WalSndShutdown(), WalSndWait(), and WalSummarizerMain().
Definition at line 229 of file ipc.c.
References arg, before_shmem_exit_index, before_shmem_exit_list, DEBUG3, dsm_backend_shutdown(), elog, ONEXIT::function, LWLockReleaseAll(), on_shmem_exit_index, on_shmem_exit_list, and shmem_exit_inprogress.
Referenced by PostmasterStateMachine(), and proc_exit_prepare().
|
extern |
Definition at line 41 of file ipc.c.
Referenced by die(), errstart(), llvm_release_context(), llvm_shutdown(), proc_exit_prepare(), ProcessRecoveryConflictInterrupts(), and StatementCancelHandler().
|
extern |
Definition at line 46 of file ipc.c.
Referenced by AtAbort_Portals(), and shmem_exit().
|
extern |
Definition at line 59 of file ipci.c.
Referenced by _PG_init(), and CreateSharedMemoryAndSemaphores().