Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / storage / pmsignal.h
blobf0e084cc2ef140200f3a2f5f7b1ce2c6562fbfb6
1 /*-------------------------------------------------------------------------
3 * pmsignal.h
4 * routines for signaling the postmaster from its child processes
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef PMSIGNAL_H
15 #define PMSIGNAL_H
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.
23 typedef enum
25 PMSIGNAL_PASSWORD_CHANGE, /* pg_auth file has changed */
26 PMSIGNAL_WAKEN_ARCHIVER, /* send a NOTIFY signal to xlog archiver */
27 PMSIGNAL_ROTATE_LOGFILE, /* send SIGUSR1 to syslogger to rotate logfile */
28 PMSIGNAL_START_AUTOVAC_LAUNCHER, /* start an autovacuum launcher */
29 PMSIGNAL_START_AUTOVAC_WORKER, /* start an autovacuum worker */
31 NUM_PMSIGNALS /* Must be last value of enum! */
32 } PMSignalReason;
35 * prototypes for functions in pmsignal.c
37 extern void PMSignalInit(void);
38 extern void SendPostmasterSignal(PMSignalReason reason);
39 extern bool CheckPostmasterSignal(PMSignalReason reason);
40 extern bool PostmasterIsAlive(bool amDirectChild);
42 #endif /* PMSIGNAL_H */