]> 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:46 +0000 (21:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 2 Jun 2005 21:03:46 +0000 (21:03 +0000)
commit543bb05a8b81e478eeacd30a7edb55c1f621e610
tree22b0f0a6d0a4e2e12c73e77ba881b403976e5e28
parent53b4a1ce4bd2e836ba6fd6cf13a753cb99f14a66
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