Re: Does pg_reset_stats() influence autovacuum?

From: Kouber Saparev <postgres(at)saparev(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Does pg_reset_stats() influence autovacuum?
Date: 2012-08-28 08:36:21
Message-ID: k1hvu5$c8g$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 08/24/2012 05:47 AM, Bruce Momjian wrote:
> On Thu, Aug 23, 2012 at 10:59:56AM +0300, Kouber Saparev wrote:
>> Hello,
>>
>> Does resetting of stats through pg_reset_stats() influence the way
>> autovacuum determines whether autovacuum_vacuum_scale_factor and
>> autovacuum_analyze_scale_factor settings are reached?
>>
>> In other words, are the n_live_tup and n_dead_tup values kept somewhere
>> internally, apart pg_stat_all_tables?
>
> No. pg_reset_stats() will affect autovacuum, usually in a bad way.
>

So, I guess the only safe moment to reset stats is right after manual
vacuum analyze.

Thanks.

--
Kouber Saparev

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2012-08-28 15:07:17 Re: symbol lookup error: /usr/pgsql-9.1/bin/pg_ctl: undefined symbol: PQping
Previous Message Rural Hunter 2012-08-28 04:42:30 Fwd: Delivery Status Notification (Failure)