Обсуждение: pgsql: Suppress attempts to report dropped tables to the stats collector

Поиск
Список
Период
Сортировка

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

От
tgl@postgresql.org (Tom Lane)
Дата:
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)