Обсуждение: pgsql: Move pgstat_report_tabstat() call so that stats are not reported

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

pgsql: Move pgstat_report_tabstat() call so that stats are not reported

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Move pgstat_report_tabstat() call so that stats are not reported to the
collector until the transaction commits.  Per recent discussion, this
should avoid confusing autovacuum when an updating transaction runs for
a long time.

Modified Files:
--------------
    pgsql/src/backend/tcop:
        postgres.c (r1.437 -> r1.438)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tcop/postgres.c.diff?r1=1.437&r2=1.438)