Endeavor to make pgstats buffer process (a) safe and (b) useful.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Aug 2001 02:06:50 +0000 (02:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Aug 2001 02:06:50 +0000 (02:06 +0000)
commite8f1097361d9d2012c751d7e66cd4dd1b6d26ac6
treee507c9ebaf5da19a1234c0927485fb49c6c83c78
parent5181d37e4c88c2b622fe54feb74845320e36c71e
Endeavor to make pgstats buffer process (a) safe and (b) useful.
Make sure it exits immediately when collector process dies --- in old code,
buffer process would hang around and compete with the new buffer process
for packets.  Make sure it doesn't block on writing the pipe when the
collector falls more than a pipeload behind.  Avoid leaking pgstats FDs
into every backend.
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/include/miscadmin.h
src/include/pgstat.h