1 /*-------------------------------------------------------------------------
4 * routines for signaling the postmaster from its child processes
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL: pgsql/src/include/storage/pmsignal.h,v 1.22 2009/02/18 15:58:41 heikki Exp $
12 *-------------------------------------------------------------------------
18 * Reasons for signaling the postmaster. We can cope with simultaneous
19 * signals for different reasons. If the same reason is signaled multiple
20 * times in quick succession, however, the postmaster is likely to observe
21 * only one notification of it. This is okay for the present uses.
25 PMSIGNAL_RECOVERY_STARTED, /* recovery has started */
26 PMSIGNAL_RECOVERY_CONSISTENT, /* recovery has reached consistent state */
27 PMSIGNAL_RECOVERY_COMPLETED, /* recovery has completed */
28 PMSIGNAL_PASSWORD_CHANGE, /* pg_auth file has changed */
29 PMSIGNAL_WAKEN_ARCHIVER, /* send a NOTIFY signal to xlog archiver */
30 PMSIGNAL_ROTATE_LOGFILE, /* send SIGUSR1 to syslogger to rotate logfile */
31 PMSIGNAL_START_AUTOVAC_LAUNCHER, /* start an autovacuum launcher */
32 PMSIGNAL_START_AUTOVAC_WORKER, /* start an autovacuum worker */
34 NUM_PMSIGNALS /* Must be last value of enum! */
38 * prototypes for functions in pmsignal.c
40 extern void PMSignalInit(void);
41 extern void SendPostmasterSignal(PMSignalReason reason);
42 extern bool CheckPostmasterSignal(PMSignalReason reason);
43 extern bool PostmasterIsAlive(bool amDirectChild);
45 #endif /* PMSIGNAL_H */