diff options
| author | Tom Lane | 2005-06-02 21:03:46 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-06-02 21:03:46 +0000 |
| commit | 543bb05a8b81e478eeacd30a7edb55c1f621e610 (patch) | |
| tree | 22b0f0a6d0a4e2e12c73e77ba881b403976e5e28 /src/include | |
| parent | 53b4a1ce4bd2e836ba6fd6cf13a753cb99f14a66 (diff) | |
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')
| -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..f945893618d 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.73.4.1 2005/06/02 21:03:46 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); |
