38#ifndef USE_POSTMASTER_DEATH_SIGNAL
46#define POSTMASTER_POLL_RATE_LIMIT 1024
130 bool conninfoChanged;
131 bool slotnameChanged;
132 bool tempSlotChanged =
false;
148 if (conninfoChanged || slotnameChanged || tempSlotChanged)
156#ifdef POSTMASTER_POLL_RATE_LIMIT
157 static uint32 postmaster_poll_count = 0;
218 Assert(startup_data_len == 0);
void AuxiliaryProcessMainCommon(void)
void HandleStartupProcInterrupts(void)
void disable_startup_progress_timeout(void)
#define POSTMASTER_POLL_RATE_LIMIT
static volatile sig_atomic_t startup_progress_timer_expired
static volatile sig_atomic_t in_restore_command
static void StartupProcExit(int code, Datum arg)
bool IsPromoteSignaled(void)
void PreRestoreCommand(void)
void startup_progress_timeout_handler(void)
static volatile sig_atomic_t shutdown_requested
static void StartupProcShutdownHandler(SIGNAL_ARGS)
void begin_startup_progress_phase(void)
void ResetPromoteSignaled(void)
static void StartupProcSigHupHandler(SIGNAL_ARGS)
static volatile sig_atomic_t got_SIGHUP
void StartupProcessMain(char *startup_data, size_t startup_data_len)
static TimestampTz startup_progress_phase_start_time
static volatile sig_atomic_t promote_signaled
void PostRestoreCommand(void)
static void StartupProcTriggerHandler(SIGNAL_ARGS)
int log_startup_progress_interval
void enable_startup_progress_timeout(void)
bool has_startup_progress_timeout_expired(long *secs, int *usecs)
static void StartupRereadConfig(void)
void TimestampDifference(TimestampTz start_time, TimestampTz stop_time, long *secs, int *microsecs)
TimestampTz GetCurrentTimestamp(void)
Datum now(PG_FUNCTION_ARGS)
#define Assert(condition)
volatile sig_atomic_t LogMemoryContextPending
volatile sig_atomic_t ProcSignalBarrierPending
void ProcessConfigFile(GucContext context)
void on_shmem_exit(pg_on_exit_callback function, Datum arg)
char * pstrdup(const char *in)
void pfree(void *pointer)
void ProcessLogMemoryContextInterrupt(void)
BackendType MyBackendType
#define PostmasterIsAlive()
pqsigfunc pqsignal(int signo, pqsigfunc func)
void ProcessProcSignalBarrier(void)
void procsignal_sigusr1_handler(SIGNAL_ARGS)
void StandbyTimeoutHandler(void)
void StandbyLockTimeoutHandler(void)
void StandbyDeadLockHandler(void)
void ShutdownRecoveryTransactionEnvironment(void)
void InitializeTimeouts(void)
void enable_timeout_every(TimeoutId id, TimestampTz fin_time, int delay_ms)
void disable_timeout(TimeoutId id, bool keep_indicator)
TimeoutId RegisterTimeout(TimeoutId id, timeout_handler_proc handler)
@ STARTUP_PROGRESS_TIMEOUT
@ STANDBY_DEADLOCK_TIMEOUT
#define TimestampTzPlusMilliseconds(tz, ms)
void StartupRequestWalReceiverRestart(void)
void WakeupRecovery(void)
bool wal_receiver_create_temp_slot
HotStandbyState standbyState