pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jochen Erwied <jochen@pgsql.erwied.eu>
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: Mon, 25 Oct 2010 16:48:39 +0200
Message-ID: <1956079949.20101025164839@erwied.eu> (raw)
In-Reply-To: <6540.1288015959@sss.pgh.pa.us>
References: <201010251242.o9PCgO10001534@wwwmaster.postgresql.org>
	<6540.1288015959@sss.pgh.pa.us>

Monday, October 25, 2010, 4:12:39 PM you wrote:

> "Jochen Erwied" <jochen@pgsql.erwied.eu> 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 

http://www.postgresql.org/docs/current/static/monitoring-stats.html 

then last_vacuum contains the last time of a user-initiated vacuum. There's 
no distinction made what kind of vacuum was made. And IMHO even if VACUUM 
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 :-)

-- 
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




view thread (9+ messages)  latest in thread

Message-ID: <1956079949.20101025164839@erwied.eu>
Permalink:  ../1956079949.20101025164839@erwied.eu/
Also on:    postgresql.org/message-id/1956079949.20101025164839@erwied.eu

 · 

reply

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: jochen@pgsql.erwied.eu, tgl@sss.pgh.pa.us
  Subject: Re: BUG #5722: vacuum full does not update last_vacuum statistics
  In-Reply-To: <1956079949.20101025164839@erwied.eu>
  References: <201010251242.o9PCgO10001534@wwwmaster.postgresql.org> <6540.1288015959@sss.pgh.pa.us> <1956079949.20101025164839@erwied.eu>

* 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