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:12:00
Message-ID: 20060330221200.41B8C11F61D3@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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/storage/smgr:
smgr.c (r1.93.2.2 -> r1.93.2.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/smgr/smgr.c.diff?r1=1.93.2.2&r2=1.93.2.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-03-30 23:03:10 pgsql: Improve gist XLOG code to follow the coding rules needed to
Previous Message Tom Lane 2006-03-30 22:11:55 pgsql: Suppress attempts to report dropped tables to the stats collector