pgsql: Suppress attempts to report dropped tables to the stats collector

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Suppress attempts to report dropped tables to the stats collector
Date: 2006-03-30 22:11:55
Message-ID: 20060330221155.0851411F61D2@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Suppress attempts to report dropped tables to the stats collector from a
startup or recovery process. Since such a process isn't a real backend,
pgstat.c gets confused. This accounts for recent reports of strange
"invalid server process ID -1" log messages during crash recovery.
There isn't any point in attempting to make the report, since we'll discard
stats in such scenarios anyhow.

Modified Files:
--------------
pgsql/src/backend/storage/smgr:
smgr.c (r1.97 -> r1.98)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/smgr/smgr.c.diff?r1=1.97&r2=1.98)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-03-30 22:12:00 pgsql: Suppress attempts to report dropped tables to the stats collector
Previous Message James William Pye 2006-03-30 15:42:19 python - fe: Don't close the connection on __del__.