X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 87E9DEFEAD for ; Fri, 6 Jun 2003 14:49:09 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 19777-05 for ; Fri, 6 Jun 2003 14:49:08 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [64.117.225.209]) by svr1.postgresql.org (Postfix) with ESMTP id E3B2BF0087 for ; Fri, 6 Jun 2003 14:47:50 +0000 (GMT) Received: from localhost.localdomain (unknown [65.217.53.66]) by www.postgresql.com (Postfix) with ESMTP id 426AECF81EE for ; Thu, 5 Jun 2003 18:07:42 +0000 (GMT) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h55IwYM3031162; Thu, 5 Jun 2003 14:58:34 -0400 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h55I6fL31009; Thu, 5 Jun 2003 14:06:41 -0400 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id M1ZDHPK2; Thu, 5 Jun 2003 14:06:40 -0400 Subject: Re: interpret vacuum verbose output From: Robert Treat To: Peter Childs Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 05 Jun 2003 14:06:40 -0400 Message-Id: <1054836400.29943.157.camel@camel> Mime-Version: 1.0 X-Archive-Number: 200306/54 X-Sequence-Number: 9045 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