Re: VACUUM ANALYZE is faster than ANALYZE? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: VACUUM ANALYZE is faster than ANALYZE?
Date
Msg-id CA+Tgmob=6Ve2=LoirsToHRdfD5AAJOW4_ZRFp-qG0LR_AGMRtg@mail.gmail.com
Whole thread Raw
In response to VACUUM ANALYZE is faster than ANALYZE?  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: VACUUM ANALYZE is faster than ANALYZE?  (Nicolas Barbier <nicolas.barbier@gmail.com>)
List pgsql-hackers
On Tue, Feb 21, 2012 at 9:00 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> I had to reply to query about usage VACUUM ANALYZE or ANALYZE. I
> expected so ANALYZE should be faster then VACUUM ANALYZE.
>
> But is not true. Why?

I'm pretty sure that VACUUM ANALYZE *will* be faster than ANALYZE in
general, because VACUUM has to scan the whole table, and ANALYZE only
a fixed-size subset of its pages.  Not sure what's happening in your
particular case...

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: leakproof
Next
From: Nicolas Barbier
Date:
Subject: Re: VACUUM ANALYZE is faster than ANALYZE?