Repair memory leaks in plpython.
[pgsql.git] / src / include / postmaster / startup.h
blob736c97d121a92d2e6f01515c62dac23f2b1eed90
1 /*-------------------------------------------------------------------------
3 * startup.h
4 * Exports from postmaster/startup.c.
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * src/include/postmaster/startup.h
10 *-------------------------------------------------------------------------
12 #ifndef _STARTUP_H
13 #define _STARTUP_H
16 * Log the startup progress message if a timer has expired.
18 #define ereport_startup_progress(msg, ...) \
19 do { \
20 long secs; \
21 int usecs; \
22 if (has_startup_progress_timeout_expired(&secs, &usecs)) \
23 ereport(LOG, errmsg(msg, secs, (usecs / 10000), __VA_ARGS__ )); \
24 } while(0)
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 */