1 /*-------------------------------------------------------------------------
4 * Exports from postmaster/startup.c.
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * src/include/postmaster/startup.h
10 *-------------------------------------------------------------------------
16 * Log the startup progress message if a timer has expired.
18 #define ereport_startup_progress(msg, ...) \
22 if (has_startup_progress_timeout_expired(&secs, &usecs)) \
23 ereport(LOG, errmsg(msg, secs, (usecs / 10000), __VA_ARGS__ )); \
26 extern PGDLLIMPORT
int log_startup_progress_interval
;
28 extern void HandleStartupProcInterrupts(void);
29 extern void StartupProcessMain(char *startup_data
, size_t startup_data_len
) pg_attribute_noreturn();
30 extern void PreRestoreCommand(void);
31 extern void PostRestoreCommand(void);
32 extern bool IsPromoteSignaled(void);
33 extern void ResetPromoteSignaled(void);
35 extern void enable_startup_progress_timeout(void);
36 extern void disable_startup_progress_timeout(void);
37 extern void begin_startup_progress_phase(void);
38 extern void startup_progress_timeout_handler(void);
39 extern bool has_startup_progress_timeout_expired(long *secs
, int *usecs
);
41 #endif /* _STARTUP_H */