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 (char *startup_data, size_t startup_data_len) 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 343 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 309 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 323 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 154 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 359 of file startup.c.
References GetCurrentTimestamp(), now(), startup_progress_phase_start_time, startup_progress_timer_expired, and TimestampDifference().
bool IsPromoteSignaled | ( | void | ) |
Definition at line 288 of file startup.c.
References promote_signaled.
Referenced by CheckForStandbyTrigger().
void PostRestoreCommand | ( | void | ) |
Definition at line 282 of file startup.c.
References in_restore_command.
Referenced by RestoreArchivedFile().
void PreRestoreCommand | ( | void | ) |
Definition at line 268 of file startup.c.
References in_restore_command, proc_exit(), and shutdown_requested.
Referenced by RestoreArchivedFile().
void ResetPromoteSignaled | ( | void | ) |
Definition at line 294 of file startup.c.
References promote_signaled.
Referenced by CheckForStandbyTrigger().
void startup_progress_timeout_handler | ( | void | ) |
Definition at line 303 of file startup.c.
References startup_progress_timer_expired.
Referenced by StartupXLOG().
void StartupProcessMain | ( | char * | startup_data, |
size_t | startup_data_len | ||
) |
Definition at line 216 of file startup.c.
References Assert, AuxiliaryProcessMainCommon(), B_STARTUP, InitializeTimeouts(), MyBackendType, 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.
|
extern |
Definition at line 76 of file startup.c.
Referenced by begin_startup_progress_phase(), disable_startup_progress_timeout(), and enable_startup_progress_timeout().