pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Kouber Saparev <postgres@saparev.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Does pg_reset_stats() influence autovacuum?
Date: Thu, 23 Aug 2012 22:47:48 -0400
Message-ID: <20120824024748.GA5965@momjian.us> (raw)
In-Reply-To: <5035E2FC.2050805@saparev.com>
References: <5035E2FC.2050805@saparev.com>

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.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +




view thread (3+ messages)  latest in thread

Message-ID: <20120824024748.GA5965@momjian.us>
Permalink:  ../20120824024748.GA5965@momjian.us/
Also on:    postgresql.org/message-id/20120824024748.GA5965@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, postgres@saparev.com
  Subject: Re: Does pg_reset_stats() influence autovacuum?
  In-Reply-To: <20120824024748.GA5965@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox