Re: What's The Difference Between VACUUM and VACUUM ANALYZE?

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
Date: 2007-05-09 11:31:11
Message-ID: 87hcqmi680.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Alvaro Herrera" <alvherre(at)commandprompt(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Gregory Stark 2007-05-09 11:36:19 Re: FW:
Previous Message david 2007-05-09 09:44:26 Re: Best OS for Postgres 8.2