]> granicus.if.org Git - postgresql/commit
Make backends that are reading the pgstats file verify each backend PID
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Aug 2005 21:14:55 +0000 (21:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 9 Aug 2005 21:14:55 +0000 (21:14 +0000)
commitc7bba5e21c25e5b4afda3df7c1a9ef9d7a4584ed
treea66b7c4e8308eb141b341872ef85656cc52bf8ac
parentf80cf69031fae2b46d262bad02f67489d47f17a4
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.
src/backend/postmaster/pgstat.c