Thread: pgsql/src backend/postmaster/pgstat.c backend/ ...

pgsql/src backend/postmaster/pgstat.c backend/ ...

From
Tom Lane
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/08/04 22:06:50

Modified files:
    src/backend/postmaster: pgstat.c postmaster.c
    src/include    : miscadmin.h pgstat.h

Log message:
    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.