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

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to