From: Tom Lane <tgl@sss.pgh.pa.us>
To: Artur ZajÄ…c <azajac@ang.com.pl>
Cc: pgsql-performance@postgresql.org
Subject: Re: Planner estimates and VACUUM/autovacuum
Date: Mon, 03 Feb 2014 16:03:32 -0500
Message-ID: <17918.1391461412@sss.pgh.pa.us> (raw)
In-Reply-To: <036301cf2116$44b73c10$ce25b430$@ang.com.pl>
References: <036301cf2116$44b73c10$ce25b430$@ang.com.pl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
=?iso-8859-2?Q?Artur_Zaj=B1c?= <azajac@ang.com.pl> writes:
> That is strange for me. VACUUM updates pg_class.reltuples differently (only
> live roiws count) than autovacuum (live and dead rows). Why?
I don't have time to poke into this in detail right now, but I think
that more likely the issue is that ANALYZE might have a different rule
than VACUUM. autovacuum will fire those operations independently, which
doesn't match what you're doing by hand.
Which is not to say that we shouldn't think about fixing that, but that
it's important to understand the problem clearly first.
regards, tom lane
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, azajac@ang.com.pl
Subject: Re: Planner estimates and VACUUM/autovacuum
In-Reply-To: <17918.1391461412@sss.pgh.pa.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