OSDN Git Service

Suppress attempts to report dropped tables to the stats collector from a
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Mar 2006 22:11:55 +0000 (22:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Mar 2006 22:11:55 +0000 (22:11 +0000)
commit4243f2387a762b26c8e6be5c8094425798d86ea3
treee32fc797f4cb2638a828d55c41fd2d13dfa92278
parentbee34e9930a7a52e0a46650ac8f3f31093368ddb
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.
src/backend/storage/smgr/smgr.c