PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | ereport_startup_progress(msg, ...) |
Functions | |
void | HandleStartupProcInterrupts (void) |
void | StartupProcessMain (void) pg_attribute_noreturn() |
void | PreRestoreCommand (void) |
void | PostRestoreCommand (void) |
bool | IsPromoteSignaled (void) |
void | ResetPromoteSignaled (void) |
void | enable_startup_progress_timeout (void) |
void | disable_startup_progress_timeout (void) |
void | begin_startup_progress_phase (void) |
void | startup_progress_timeout_handler (void) |
bool | has_startup_progress_timeout_expired (long *secs, int *usecs) |
Variables | |
PGDLLIMPORT int | log_startup_progress_interval |
#define ereport_startup_progress | ( | msg, | |
... | |||
) |
void begin_startup_progress_phase | ( | void | ) |
Definition at line 352 of file startup.c.
References disable_startup_progress_timeout(), enable_startup_progress_timeout(), and log_startup_progress_interval.
Referenced by PerformWalRecovery(), ResetUnloggedRelations(), and SyncDataDirectory().
void disable_startup_progress_timeout | ( | void | ) |
Definition at line 318 of file startup.c.
References disable_timeout(), log_startup_progress_interval, STARTUP_PROGRESS_TIMEOUT, and startup_progress_timer_expired.
Referenced by begin_startup_progress_phase(), and EnableStandbyMode().
void enable_startup_progress_timeout | ( | void | ) |
Definition at line 332 of file startup.c.
References enable_timeout_every(), GetCurrentTimestamp(), log_startup_progress_interval, startup_progress_phase_start_time, STARTUP_PROGRESS_TIMEOUT, and TimestampTzPlusMilliseconds.
Referenced by begin_startup_progress_phase().
void HandleStartupProcInterrupts | ( | void | ) |
Definition at line 168 of file startup.c.
References exit(), got_SIGHUP, IsUnderPostmaster, LogMemoryContextPending, POSTMASTER_POLL_RATE_LIMIT, PostmasterIsAlive, proc_exit(), ProcessLogMemoryContextInterrupt(), ProcessProcSignalBarrier(), ProcSignalBarrierPending, shutdown_requested, and StartupRereadConfig().
Referenced by PerformWalRecovery(), recoveryApplyDelay(), recoveryPausesHere(), RecoveryRequiresIntParameter(), and WaitForWALToBecomeAvailable().
bool has_startup_progress_timeout_expired | ( | long * | secs, |
int * | usecs | ||
) |
Definition at line 368 of file startup.c.
References GetCurrentTimestamp(), now(), startup_progress_phase_start_time, startup_progress_timer_expired, and TimestampDifference().
bool IsPromoteSignaled | ( | void | ) |
Definition at line 297 of file startup.c.
References promote_signaled.
Referenced by CheckForStandbyTrigger().
void PostRestoreCommand | ( | void | ) |
Definition at line 291 of file startup.c.
References in_restore_command.
Referenced by RestoreArchivedFile().
void PreRestoreCommand | ( | void | ) |
Definition at line 277 of file startup.c.
References in_restore_command, proc_exit(), and shutdown_requested.
Referenced by RestoreArchivedFile().
void ResetPromoteSignaled | ( | void | ) |
Definition at line 303 of file startup.c.
References promote_signaled.
Referenced by CheckForStandbyTrigger().
void startup_progress_timeout_handler | ( | void | ) |
Definition at line 312 of file startup.c.
References startup_progress_timer_expired.
Referenced by StartupXLOG().
void StartupProcessMain | ( | void | ) |
Definition at line 230 of file startup.c.
References InitializeTimeouts(), on_shmem_exit(), pqsignal(), proc_exit(), procsignal_sigusr1_handler(), RegisterTimeout(), SIG_DFL, SIG_IGN, SIGCHLD, SIGHUP, SIGPIPE, SIGUSR1, SIGUSR2, STANDBY_DEADLOCK_TIMEOUT, STANDBY_LOCK_TIMEOUT, STANDBY_TIMEOUT, StandbyDeadLockHandler(), StandbyLockTimeoutHandler(), StandbyTimeoutHandler(), StartupProcExit(), StartupProcShutdownHandler(), StartupProcSigHupHandler(), StartupProcTriggerHandler(), StartupXLOG(), and UnBlockSig.
Referenced by AuxiliaryProcessMain().
|
extern |
Definition at line 78 of file startup.c.
Referenced by begin_startup_progress_phase(), disable_startup_progress_timeout(), and enable_startup_progress_timeout().