pgsql: Make backends that are reading the pgstats file verify each

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make backends that are reading the pgstats file verify each
Date: 2005-08-09 21:14:55
Message-ID: 20050809211455.C9CE852A62@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Make backends that are reading the pgstats file verify each backend PID
against the PGPROC array. Anything in the file that isn't in PGPROC
gets rejected as being a stale entry. This should solve complaints about
stale entries in pg_stat_activity after a BETERM message has been dropped
due to overload.

Modified Files:
--------------
pgsql/src/backend/postmaster:
pgstat.c (r1.103 -> r1.104)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c.diff?r1=1.103&r2=1.104)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-08-09 22:47:04 pgsql: Extend pg_config to be able to report the build-time values of
Previous Message Bruce Momjian 2005-08-09 20:24:32 pgsql: Combine entries: < inheritance < * Allow