diff options
| author | Heikki Linnakangas | 2008-12-09 15:59:39 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2008-12-09 15:59:39 +0000 |
| commit | dea81a6cf620528e6c17e9973b32b54e0076cf06 (patch) | |
| tree | 35e1201dc7d82bb5d3cc70fce7dd5a326e4237e0 /src/include | |
| parent | 7b05b3fa3996c6b7795c22757a31e2348378209d (diff) | |
Revert SIGUSR1 multiplexing patch, per Tom's objection.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/proc.h | 30 | ||||
| -rw-r--r-- | src/include/storage/sinval.h | 4 | ||||
| -rw-r--r-- | src/include/tcop/tcopprot.h | 3 |
3 files changed, 4 insertions, 33 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index 3ff484ee41..4494fbaad8 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -7,15 +7,13 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.108 2008/12/09 14:28:20 heikki Exp $ + * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.109 2008/12/09 15:59:39 heikki Exp $ * *------------------------------------------------------------------------- */ #ifndef _PROC_H_ #define _PROC_H_ -#include <signal.h> - #include "storage/lock.h" #include "storage/pg_sema.h" @@ -40,19 +38,6 @@ struct XidCache TransactionId xids[PGPROC_MAX_CACHED_SUBXIDS]; }; -/* - * Reasons for signaling a process (a backend or an auxiliary process, like - * autovacuum worker). We can cope with simultaneous signals for different - * reasons. If the same reason is signaled multiple times in quick succession, - * however, the process is likely to observe only one notification of it. - * This is okay for the present uses. - */ -typedef enum -{ - PROCSIG_CATCHUP_INTERRUPT, /* catchup interrupt */ - NUM_PROCSIGNALS /* Must be last value of enum! */ -} ProcSignalReason; - /* Flags for PGPROC->vacuumFlags */ #define PROC_IS_AUTOVACUUM 0x01 /* is it an autovac worker? */ #define PROC_IN_VACUUM 0x02 /* currently running lazy vacuum */ @@ -108,16 +93,6 @@ struct PGPROC uint8 vacuumFlags; /* vacuum-related flags, see above */ - /* - * SIGUSR1 signal is multiplexed for multiple purposes. signalFlags - * indicates which "reasons" have been signaled. - * - * The flags are declared as "volatile sig_atomic_t" for maximum - * portability. This should ensure that loads and stores of the flag - * values are atomic, allowing us to dispense with any explicit locking. - */ - volatile sig_atomic_t signalFlags[NUM_PROCSIGNALS]; - /* Info about LWLock the process is currently waiting for, if any. */ bool lwWaiting; /* true if waiting for an LW lock */ bool lwExclusive; /* true if waiting for exclusive access */ @@ -196,9 +171,6 @@ extern void LockWaitCancel(void); extern void ProcWaitForSignal(void); extern void ProcSendSignal(int pid); -extern void SendProcSignal(PGPROC *proc, ProcSignalReason reason); -extern bool CheckProcSignal(ProcSignalReason reason); - extern bool enable_sig_alarm(int delayms, bool is_statement_timeout); extern bool disable_sig_alarm(bool is_statement_timeout); extern void handle_sig_alarm(SIGNAL_ARGS); diff --git a/src/include/storage/sinval.h b/src/include/storage/sinval.h index af47f8de93..5722fac353 100644 --- a/src/include/storage/sinval.h +++ b/src/include/storage/sinval.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/sinval.h,v 1.49 2008/12/09 14:28:20 heikki Exp $ + * $PostgreSQL: pgsql/src/include/storage/sinval.h,v 1.50 2008/12/09 15:59:39 heikki Exp $ * *------------------------------------------------------------------------- */ @@ -90,7 +90,7 @@ extern void ReceiveSharedInvalidMessages( void (*resetFunction) (void)); /* signal handler for catchup events (SIGUSR1) */ -extern void HandleCatchupInterrupt(void); +extern void CatchupInterruptHandler(SIGNAL_ARGS); /* * enable/disable processing of catchup events directly from signal handler. diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h index 3a2f4fc2e6..bd458fac9a 100644 --- a/src/include/tcop/tcopprot.h +++ b/src/include/tcop/tcopprot.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.94 2008/12/09 14:28:20 heikki Exp $ + * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.95 2008/12/09 15:59:39 heikki Exp $ * * OLD COMMENTS * This file was created so that other c files could get the two @@ -56,7 +56,6 @@ extern List *pg_plan_queries(List *querytrees, int cursorOptions, extern bool assign_max_stack_depth(int newval, bool doit, GucSource source); -extern void proc_sigusr1_handler(SIGNAL_ARGS); extern void die(SIGNAL_ARGS); extern void quickdie(SIGNAL_ARGS); extern void authdie(SIGNAL_ARGS); |
