Received: from maia.hub.org (unknown [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 119F01336FA7 for ; Mon, 25 Oct 2010 12:09:10 -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 16326-01 for ; Mon, 25 Oct 2010 15:09:01 +0000 (UTC) X-Greylist: delayed 00:20:14.578302 by SQLgrey-1.7.6 Received: from mail.erwied.eu (mail.erwied.eu [85.214.80.157]) by mail.postgresql.org (Postfix) with ESMTP id BE82C1336473 for ; Mon, 25 Oct 2010 12:09:01 -0300 (ADT) Received: from [188.109.228.235] (helo=erwied.dns2go.com ident=mail) by mail.erwied.eu with esmtpsa (Exim 4.72#1) id 1PAOLr-0007Ff-T6 ; Mon, 25 Oct 2010 16:48:44 +0200 Received: from port-87-234-32-189.static.qsc.de ([87.234.32.189] helo=localhost) by erwied.dns2go.com with esmtpsa (Exim 4.72#1) id 1PAOLq-0003g0-CO ; Mon, 25 Oct 2010 16:48:42 +0200 Date: Mon, 25 Oct 2010 16:48:39 +0200 From: Jochen Erwied Organization: Creative Chaos Computing X-Priority: 3 (Normal) Message-ID: <1956079949.20101025164839@erwied.eu> To: Tom Lane CC: "Jochen Erwied" , pgsql-bugs@postgresql.org Subject: Re: BUG #5722: vacuum full does not update last_vacuum statistics In-Reply-To: <6540.1288015959@sss.pgh.pa.us> References: <201010251242.o9PCgO10001534@wwwmaster.postgresql.org> <6540.1288015959@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Antivirus: avast! (VPS 101025-0, 25.10.2010), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/203 X-Sequence-Number: 28493 Monday, October 25, 2010, 4:12:39 PM you wrote: > "Jochen Erwied" writes: >> VACUUM FULL does not update statistics so display of pg_stat_user_tables= is >> wrong. A normal VACUUM updates the relevant information. > Hmm. This is a definitional issue: what do we really mean by last_vacuum? > I'm inclined to think that the current behavior is reasonable. VACUUM > FULL is (still) not intended as a routine maintenance operation, and > the point of that column is to track routine maintenance operations. Well, when reading=20 http://www.postgresql.org/docs/current/static/monitoring-stats.html=20 then last_vacuum contains the last time of a user-initiated vacuum. There's= =20 no distinction made what kind of vacuum was made. And IMHO even if VACUUM= =20 FULL isn't meant for routine vacuuming, the state should be changed. Of course the easiest way to fix this bug (or better flaw) is to change the documentation :-) --=20 Jochen Erwied | home: jochen@erwied.eu +49-208-38800-18, FAX: -19 Sauerbruchstr. 17 | work: joe@mbs-software.de +49-2151-7294-24, FAX: -50 D-45470 Muelheim | mobile: jochen.erwied@vodafone.de +49-173-5404164