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

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

Commit: b38bcb2fa0de59ba09ccbb03d4ae9d65cbbf5326
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-06-02T21:04:08Z
Releases: 7.4.9
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 +61 −19
src/include/tcop/tcopprot.h modified +3 −1