]> granicus.if.org Git - postgresql/commit
Push enable/disable of notify and catchup interrupts all the way down
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2005 21:03:25 +0000 (21:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2005 21:03:25 +0000 (21:03 +0000)
commitb5ebef7c4154d2423c68195a30cbcb37a2393054
tree87679fb08d6e0588fc8b193cce0d22ef8b65d1c3
parent8dfb616606d411dd0ea7dc9980061cd9a94b1de7
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.
src/backend/libpq/be-secure.c
src/backend/tcop/postgres.c
src/include/tcop/tcopprot.h