PostgreSQL Source Code git master
|
#include "postgres.h"
#include <unistd.h>
#include "miscadmin.h"
#include "postmaster/interrupt.h"
#include "storage/ipc.h"
#include "storage/latch.h"
#include "storage/procsignal.h"
#include "utils/guc.h"
#include "utils/memutils.h"
Go to the source code of this file.
Functions | |
void | HandleMainLoopInterrupts (void) |
void | SignalHandlerForConfigReload (SIGNAL_ARGS) |
void | SignalHandlerForCrashExit (SIGNAL_ARGS) |
void | SignalHandlerForShutdownRequest (SIGNAL_ARGS) |
Variables | |
volatile sig_atomic_t | ConfigReloadPending = false |
volatile sig_atomic_t | ShutdownRequestPending = false |
void HandleMainLoopInterrupts | ( | void | ) |
Definition at line 34 of file interrupt.c.
References ConfigReloadPending, LogMemoryContextPending, PGC_SIGHUP, proc_exit(), ProcessConfigFile(), ProcessLogMemoryContextInterrupt(), ProcessProcSignalBarrier(), ProcSignalBarrierPending, and ShutdownRequestPending.
Referenced by BackgroundWriterMain(), and WalWriterMain().
void SignalHandlerForConfigReload | ( | SIGNAL_ARGS | ) |
Definition at line 61 of file interrupt.c.
References ConfigReloadPending, MyLatch, and SetLatch().
Referenced by ApplyLauncherMain(), autoprewarm_main(), AutoVacWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), ParallelApplyWorkerMain(), PgArchiverMain(), PostgresMain(), ReplSlotSyncWorkerMain(), SetupApplyOrSyncWorker(), SysLoggerMain(), WalReceiverMain(), WalSndSignals(), WalSummarizerMain(), WalWriterMain(), and worker_spi_main().
void SignalHandlerForCrashExit | ( | SIGNAL_ARGS | ) |
Definition at line 73 of file interrupt.c.
Referenced by InitPostmasterChild().
void SignalHandlerForShutdownRequest | ( | SIGNAL_ARGS | ) |
Definition at line 105 of file interrupt.c.
References MyLatch, SetLatch(), and ShutdownRequestPending.
Referenced by autoprewarm_main(), BackgroundWriterMain(), CheckpointerMain(), ParallelApplyWorkerMain(), PgArchiverMain(), ReplSlotSyncWorkerMain(), WalReceiverMain(), WalSummarizerMain(), and WalWriterMain().
volatile sig_atomic_t ConfigReloadPending = false |
Definition at line 27 of file interrupt.c.
Referenced by ApplyLauncherMain(), autoprewarm_main(), CheckpointWriteDelay(), do_autovacuum(), HandleAutoVacLauncherInterrupts(), HandleCheckpointerInterrupts(), HandleMainLoopInterrupts(), HandlePgArchInterrupts(), HandleWalSummarizerInterrupts(), LogicalRepApplyLoop(), PostgresMain(), ProcessParallelApplyInterrupts(), ProcessPendingWrites(), ProcessSlotSyncInterrupts(), SignalHandlerForConfigReload(), slotsync_reread_config(), SysLoggerMain(), vacuum_delay_point(), WaitForStandbyConfirmation(), WalReceiverMain(), WalSndLoop(), WalSndWaitForWal(), and worker_spi_main().
volatile sig_atomic_t ShutdownRequestPending = false |
Definition at line 28 of file interrupt.c.
Referenced by apw_load_buffers(), autoprewarm_main(), CheckpointWriteDelay(), HandleAutoVacLauncherInterrupts(), HandleCheckpointerInterrupts(), HandleMainLoopInterrupts(), HandleWalSummarizerInterrupts(), pgarch_ArchiverCopyLoop(), pgarch_MainLoop(), ProcessParallelApplyInterrupts(), ProcessSlotSyncInterrupts(), ProcessWalRcvInterrupts(), and SignalHandlerForShutdownRequest().