From: Joshua Tolley <eggyknap@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jochen Erwied <jochen@pgsql.erwied.eu>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5722: vacuum full does not update last_vacuum statistics
Date: Tue, 26 Oct 2010 10:31:24 -0600
Message-ID: <4cc7026a.a26fe50a.7c0f.2536@mx.google.com> (raw)
In-Reply-To: <8123.1288018987@sss.pgh.pa.us>
References: <201010251242.o9PCgO10001534@wwwmaster.postgresql.org>
<6540.1288015959@sss.pgh.pa.us>
<1956079949.20101025164839@erwied.eu>
<8123.1288018987@sss.pgh.pa.us>
On Mon, Oct 25, 2010 at 11:03:07AM -0400, Tom Lane wrote:
> Perhaps. The new implementation of VACUUM FULL is really more like a
> CLUSTER, or one of the rewriting variants of ALTER TABLE. Should all
> of those operations result in an update of last_vacuum? From an
> implementation standpoint it's difficult to say that only some of them
> should, because all of them result in a table that has no immediate
> need for vacuuming. The only argument I can see for having only VACUUM
> FULL update the timestamp is that it's called VACUUM and the others
> aren't. Which is an argument, but not a terribly impressive one IMO.
I agree it's an unimpressive argument; perhaps it's worth considering that
last_vacuum doesn't really indicate how much a particular table needs
vacuuming, either. Without the update/delete statistics telling you how much
updating and deleting has happened since the last vacuum, there's really no
way of guessing how vacuum-needy something might be based only on available
statistics. last_vacuum is just a nice way of verifying that [auto]vacuum
happens on the table sometimes, and influencing an administrator's WAGs about
what needs vacuuming.
--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.comAttachments:
signature.asc (application/pgp-signature, 196B) download
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-bugs@postgresql.org
Cc: eggyknap@gmail.com, tgl@sss.pgh.pa.us, jochen@pgsql.erwied.eu
Subject: Re: BUG #5722: vacuum full does not update last_vacuum statistics
In-Reply-To: <4cc7026a.a26fe50a.7c0f.2536@mx.google.com>
References: <201010251242.o9PCgO10001534@wwwmaster.postgresql.org> <6540.1288015959@sss.pgh.pa.us> <1956079949.20101025164839@erwied.eu> <8123.1288018987@sss.pgh.pa.us> <4cc7026a.a26fe50a.7c0f.2536@mx.google.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