From: david@lang.hm
To: Y Sidhu <ysidhu@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
Date: Tue, 8 May 2007 14:46:36 -0700 (PDT)
Message-ID: <Pine.LNX.4.64.0705081443550.29403@asgard.lang.hm> (raw)
In-Reply-To: <b09064f30705081443w25bf2e6o3a663c5f3a2a7798@mail.gmail.com>
References: <b09064f30705081443w25bf2e6o3a663c5f3a2a7798@mail.gmail.com>
On Tue, 8 May 2007, Y Sidhu wrote:
> I am trying to follow a message thread. One guy says we should be running
> vacuum analyze daily and the other says we should be running vacuum multiple
> times a day. I have tried looking for what a vacuum analyze is to help me
> understand but no luck.
vaccum frees tuples that are no longer refrenced
vaccum analyse does the same thing, but then does some additional
information gathering about what data is in the tables Postgres uses this
data to adjust it's estimates of how long various things will take
(sequential scan, etc). if these estimates are off by a huge amount
(especially if you have never done a vaccum analyse after loading your
table) then it's very likely that postgres will be slow becouse it's doing
expensive operations that it thinks are cheap.
David Lang
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: david@lang.hm, ysidhu@gmail.com
Subject: Re: What's The Difference Between VACUUM and VACUUM ANALYZE?
In-Reply-To: <Pine.LNX.4.64.0705081443550.29403@asgard.lang.hm>
References: <b09064f30705081443w25bf2e6o3a663c5f3a2a7798@mail.gmail.com> <Pine.LNX.4.64.0705081443550.29403@asgard.lang.hm>
* 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