Push enable/disable of notify and catchup interrupts all the way down

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b5ebef7c4154d2423c68195a30cbcb37a2393054
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-06-02T21:03:25Z
Releases: 8.1.0
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.

Files

PathChange+/−
src/backend/libpq/be-secure.c modified +77 −3
src/backend/tcop/postgres.c modified +62 −20
src/include/tcop/tcopprot.h modified +3 −1