pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shankar K <shan0075@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: interpret vacuum verbose output
Date: Thu, 05 Jun 2003 09:59:45 -0400
Message-ID: <2104.1054821585@sss.pgh.pa.us> (raw)
In-Reply-To: <20030604164557.24757.qmail@web21102.mail.yahoo.com>
References: <20030604164557.24757.qmail@web21102.mail.yahoo.com>

Shankar K <shan0075@yahoo.com> writes:
> 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.

> INFO:  Removed 55448 tuples in 2367 pages.
> 	CPU 0.04s/0.11u sec elapsed 0.41 sec.
> INFO:  Pages 11266: Changed 4, Empty 0; Tup 231: Vac
> 55448, Keep 0, UnUsed 205434.

This says that you have 231 live tuples versus 55448 that were removed ---
in other words, less than one-half of one percent of your table was
current data.  You need to vacuum this table a LOT more often than
you are doing.

You will need a VACUUM FULL and a REINDEX to get the table and index
physical sizes down to something reasonable, after which a more rigorous
schedule of plain vacuums ought to keep things in shape.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <2104.1054821585@sss.pgh.pa.us>
Permalink:  ../2104.1054821585@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2104.1054821585@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, shan0075@yahoo.com
  Subject: Re: interpret vacuum verbose output
  In-Reply-To: <2104.1054821585@sss.pgh.pa.us>
  References: <20030604164557.24757.qmail@web21102.mail.yahoo.com> <2104.1054821585@sss.pgh.pa.us>

* 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