Endeavor to make pgstats buffer process (a) safe and (b) useful.

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

Commit: e8f1097361d9d2012c751d7e66cd4dd1b6d26ac6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-08-05T02:06:50Z
Releases: 7.2.1
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.

Files

PathChange+/−
src/backend/postmaster/pgstat.c modified +271 −147
src/backend/postmaster/postmaster.c modified +8 −6
src/include/miscadmin.h modified +2 −1
src/include/pgstat.h modified +7 −9