mirror of
https://github.com/postgres/postgres.git
synced 2026-02-28 04:10:35 -05:00
Up until now, we've had a policy of only marking certain variables in the PostgreSQL header files with PGDLLIMPORT, but now we've decided to mark them all. This means that extensions running on Windows should no longer operate at a disadvantage as compared to extensions running on Linux: if the variable is present in a header file, it should be accessible. Discussion: http://postgr.es/m/CA+TgmoYanc1_FSfimhgiWSqVyP5KKmh5NP2BWNwDhO8Pg2vGYQ@mail.gmail.com
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* startup.h
|
|
* Exports from postmaster/startup.c.
|
|
*
|
|
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
|
*
|
|
* src/include/postmaster/startup.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef _STARTUP_H
|
|
#define _STARTUP_H
|
|
|
|
/*
|
|
* Log the startup progress message if a timer has expired.
|
|
*/
|
|
#define ereport_startup_progress(msg, ...) \
|
|
do { \
|
|
long secs; \
|
|
int usecs; \
|
|
if (has_startup_progress_timeout_expired(&secs, &usecs)) \
|
|
ereport(LOG, errmsg(msg, secs, (usecs / 10000), __VA_ARGS__ )); \
|
|
} while(0)
|
|
|
|
extern PGDLLIMPORT int log_startup_progress_interval;
|
|
|
|
extern void HandleStartupProcInterrupts(void);
|
|
extern void StartupProcessMain(void) pg_attribute_noreturn();
|
|
extern void PreRestoreCommand(void);
|
|
extern void PostRestoreCommand(void);
|
|
extern bool IsPromoteSignaled(void);
|
|
extern void ResetPromoteSignaled(void);
|
|
|
|
extern void begin_startup_progress_phase(void);
|
|
extern void startup_progress_timeout_handler(void);
|
|
extern bool has_startup_progress_timeout_expired(long *secs, int *usecs);
|
|
|
|
#endif /* _STARTUP_H */
|