Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
startup.h42 linesDownload Raw Back to postmaster
1/*-------------------------------------------------------------------------2 *3 * startup.h4 *	  Exports from postmaster/startup.c.5 *6 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group7 *8 * src/include/postmaster/startup.h9 *10 *-------------------------------------------------------------------------11 */12#ifndef _STARTUP_H13#define _STARTUP_H14 15/*16 * Log the startup progress message if a timer has expired.17 */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)25 26extern PGDLLIMPORT int log_startup_progress_interval;27 28extern void HandleStartupProcInterrupts(void);29extern void StartupProcessMain(void) pg_attribute_noreturn();30extern void PreRestoreCommand(void);31extern void PostRestoreCommand(void);32extern bool IsPromoteSignaled(void);33extern void ResetPromoteSignaled(void);34 35extern void enable_startup_progress_timeout(void);36extern void disable_startup_progress_timeout(void);37extern void begin_startup_progress_phase(void);38extern void startup_progress_timeout_handler(void);39extern bool has_startup_progress_timeout_expired(long *secs, int *usecs);40 41#endif							/* _STARTUP_H */42 
codekingpro/portable-devtools · Team Ai