Re: Autovacuum and pg_stat_reset()

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Autovacuum and pg_stat_reset()
Дата
Msg-id 20090720025751.GJ4938@alvh.no-ip.org
обсуждение исходный текст
Ответ на Autovacuum and pg_stat_reset()  (Rafael Martinez <r.m.guerrero@usit.uio.no>)
Список pgsql-general
Rafael Martinez wrote:

> Does the use of pg_stat_reset() affects the statistics autovacuum uses
> to find out what to do and when this should be done?

Yes.  You should do a manual ANALYZE after resetting stats to keep
autovacuum in sync with reality.  (In principle ANALYZE is only
concerned with updating the unrelated stats in pg_statistic, but it also
sends dead/live tuple counts to pgstats which autovacuum relies on.)

> Can the use of pg_stat_reset() affect performance in any way?

Hmm, not sure.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: timestamp with time zone tutorial
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PERFORM] Incr/Decr Integer