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

Started by Tom Laneover 20 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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)