pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <stark@enterprisedb.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
Date: Wed, 09 May 2007 12:31:11 +0100
Message-ID: <87hcqmi680.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <20070508222102.GD24167@alvh.no-ip.org>
References: <b09064f30705081443w25bf2e6o3a663c5f3a2a7798@mail.gmail.com>
	<20070508215213.GC24167@alvh.no-ip.org>
	<20070508220608.GA8457@uio.no>
	<20070508222102.GD24167@alvh.no-ip.org>

"Alvaro Herrera" <alvherre@commandprompt.com> writes:

> Steinar H. Gunderson wrote:
>
>> Shoot me if I'm wrong here, but doesn't VACUUM ANALYZE check _all_ tuples,
>> as compared to the random selection employed by ANALYZE?
>
> You are wrong, but it won't be me the one to shoot you.
>
> There have been noises towards making the ANALYZE portion use the same
> scan that VACUUM already does, but nobody has written the code (it would
> be useful for some kinds of stats).

I think it does for the count of total records in the table. 
But not for the rest of the stats.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com




view thread (6+ messages)

Message-ID: <87hcqmi680.fsf@oxford.xeocode.com>
Permalink:  ../87hcqmi680.fsf@oxford.xeocode.com/
Also on:    postgresql.org/message-id/87hcqmi680.fsf@oxford.xeocode.com

 · 

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-performance@postgresql.org
  Cc: stark@enterprisedb.com, alvherre@commandprompt.com
  Subject: Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
  In-Reply-To: <87hcqmi680.fsf@oxford.xeocode.com>

* 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