Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2C6B51337B4B for ; Tue, 26 Oct 2010 13:31:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 28191-01 for ; Tue, 26 Oct 2010 16:31:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) by mail.postgresql.org (Postfix) with ESMTP id 6A7181336DB6 for ; Tue, 26 Oct 2010 13:31:40 -0300 (ADT) Received: by qyk10 with SMTP id 10so3142180qyk.19 for ; Tue, 26 Oct 2010 09:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=7p6COEGibSvCL/NogQSIyLXsbUgrQOfJVrp9Gbd/jWk=; b=AVy0a45y1hgcxnpbl6MSmiDq+wZ/P9QmkfIOlGimuVI6ScjJ2BhpE53RdkFyB77PF2 LhiP59eyTAqSieQYfqyTqnj0B7aIsfGTKm/hWl2zsiAbiXj1dbra/eam/m++Q05y8IeW AG88D2RPY0qJIYAayarJoLGDVVbAaeWg/GEec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Mcrnh2km6NIP8eM5K8xzF2eXBW3LCzrSQhfU2jLzehPJamJZ4UF2bkb4IlzTQHY8AB ifXBORzpEuP4iM0hmoOme8NEvJvVk6BXIWRhdouKOH1m1mug3blSENCOSo1F5tcy+keR wGOGG5iOgPCHVncqn+uW198W2Uf3esfMfbL60= Received: by 10.224.188.138 with SMTP id da10mr1544857qab.367.1288110699642; Tue, 26 Oct 2010 09:31:39 -0700 (PDT) Received: from eddie (c-67-186-249-122.hsd1.ut.comcast.net [67.186.249.122]) by mx.google.com with ESMTPS id s34sm7512219qcp.8.2010.10.26.09.31.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 26 Oct 2010 09:31:38 -0700 (PDT) Message-ID: <4cc7026a.a26fe50a.7c0f.2536@mx.google.com> Date: Tue, 26 Oct 2010 10:31:24 -0600 From: Joshua Tolley To: Tom Lane Cc: Jochen Erwied , pgsql-bugs@postgresql.org Subject: Re: BUG #5722: vacuum full does not update last_vacuum statistics References: <201010251242.o9PCgO10001534@wwwmaster.postgresql.org> <6540.1288015959@sss.pgh.pa.us> <1956079949.20101025164839@erwied.eu> <8123.1288018987@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rpGc+ACYPE+RMC+Z" Content-Disposition: inline In-Reply-To: <8123.1288018987@sss.pgh.pa.us> User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/226 X-Sequence-Number: 28516 --rpGc+ACYPE+RMC+Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 abo= ut what needs vacuuming.=20 -- Joshua Tolley / eggyknap End Point Corporation http://www.endpoint.com --rpGc+ACYPE+RMC+Z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkzHAlwACgkQRiRfCGf1UMNYFQCfaBATIwEhs6Oz+Kyn5lyefGr/ AdUAoIMfzId+i+dZWQEqbbXe6Eb93x+Z =cMLt -----END PGP SIGNATURE----- --rpGc+ACYPE+RMC+Z--