diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-02 21:03:25 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-02 21:03:25 +0000 |
commit | b5ebef7c4154d2423c68195a30cbcb37a2393054 (patch) | |
tree | 87679fb08d6e0588fc8b193cce0d22ef8b65d1c3 /src/include/tcop/tcopprot.h | |
parent | 8dfb616606d411dd0ea7dc9980061cd9a94b1de7 (diff) | |
download | postgresql-b5ebef7c4154d2423c68195a30cbcb37a2393054.tar.gz postgresql-b5ebef7c4154d2423c68195a30cbcb37a2393054.zip |
Push enable/disable of notify and catchup interrupts all the way down
to just around the bare recv() call that gets a command from the client.
The former placement in PostgresMain was unsafe because the intermediate
processing layers (especially SSL) use facilities such as malloc that are
not necessarily re-entrant. Per report from counterstorm.com.
Diffstat (limited to 'src/include/tcop/tcopprot.h')
-rw-r--r-- | src/include/tcop/tcopprot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h index 23764dd1f93..23b338e7ae1 100644 --- a/src/include/tcop/tcopprot.h +++ b/src/include/tcop/tcopprot.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.73 2004/12/31 22:03:44 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.74 2005/06/02 21:03:25 tgl Exp $ * * OLD COMMENTS * This file was created so that other c files could get the two @@ -59,6 +59,8 @@ extern bool assign_max_stack_depth(int newval, bool doit, GucSource source); extern void die(SIGNAL_ARGS); extern void quickdie(SIGNAL_ARGS); extern void authdie(SIGNAL_ARGS); +extern void prepare_for_client_read(void); +extern void client_read_ended(void); extern int PostgresMain(int argc, char *argv[], const char *username); extern void ResetUsage(void); extern void ShowUsage(const char *title); |