From: Robert Treat <xzilla@users.sourceforge.net>
To: Peter Childs <blue.dragon@blueyonder.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: interpret vacuum verbose output
Date: 05 Jun 2003 14:06:40 -0400
Message-ID: <1054836400.29943.157.camel@camel> (raw)
In-Reply-To: <Pine.LNX.4.44.0306050942160.12495-100000@RedDragon.Childs>
References: <Pine.LNX.4.44.0306050942160.12495-100000@RedDragon.Childs>
On Thu, 2003-06-05 at 04:54, Peter Childs wrote:
> On Wed, 4 Jun 2003, Shankar K wrote:
>
> > hi all,
> >
> > I'm trying to evaluate the frequecy to run vacuum
> > analyze on key tables. so if anyone could help me to
> > interpret the output of vacuum analyze verbose output
> > that would be great. below is the output of one of our
> > major indexes.
> >
> UnUsed: Number of Records In Table not in use currently. (I think vacuum
> full should remove these)
yes
> Changed: Number of Records Changed (Not sure)
Number of Pages Changed
> Keep: Number of Records to Keep (Not Sure)
Correct. Usually these are tuples that are currently being accessed
within a transaction.
> If deleted gets too big you should be vacuuming more often
>
not really, unused is far more significant for that. You might say if
deleted is too small, you might want to vacuum less frequently.
> If unused gets too big try and increase your fsm size.
>
if it gets too big, it's a sign you're not vacuuming enough.
if it gets way too big, you need to do a vacuum full.
note recommendations on deleted and unused both assume you have
increased your fsm settings appropriately.
also note that in pre-7.4 releases, vacuum cannot remove dead pages
within indexes, so if your indexes grow to large you will need to
REINDEX
Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
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-admin@postgresql.org
Cc: xzilla@users.sourceforge.net, blue.dragon@blueyonder.co.uk
Subject: Re: interpret vacuum verbose output
In-Reply-To: <1054836400.29943.157.camel@camel>
References: <Pine.LNX.4.44.0306050942160.12495-100000@RedDragon.Childs> <1054836400.29943.157.camel@camel>
* 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