X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id ABA949FA621 for ; Tue, 20 Jun 2006 12:09:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 51589-03 for ; Tue, 20 Jun 2006 12:09:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from alvh.no-ip.org (201-221-201-100.bk11-dsl.surnet.cl [201.221.201.100]) by postgresql.org (Postfix) with ESMTP id 18F779FA219 for ; Tue, 20 Jun 2006 12:09:45 -0300 (ADT) Received: by alvh.no-ip.org (Postfix, from userid 1000) id 4ADDCC3A43A; Tue, 20 Jun 2006 11:09:46 -0400 (CLT) Date: Tue, 20 Jun 2006 11:09:46 -0400 From: Alvaro Herrera To: Chris Hoover Cc: "pgsql-admin@postgresql.org" Subject: Re: free space map Message-ID: <20060620150946.GN26882@surnet.cl> Mail-Followup-To: Chris Hoover , "pgsql-admin@postgresql.org" References: <1d219a6f0606200744y40714eb5sec53ed5aba3693cc@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d219a6f0606200744y40714eb5sec53ed5aba3693cc@mail.gmail.com> User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.203 tagged_above=0 required=5 tests=AWL, BAYES_00, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, FORGED_RCVD_HELO, RCVD_IN_SORBS_DUL X-Spam-Level: X-Archive-Number: 200606/157 X-Sequence-Number: 22119 Chris Hoover wrote: > Is there anyway to query the free space map and see how many entries there > are for a specific table? > > We are starting to have some performance issues since our upgrade to > 8.1(running > 8.1.3). However I can vacuum one table and the issues are temporarily > solved. I am trying to do some research and would like to know what the fsm > looks like before and after I vacuum this table. In CVS HEAD there is a pg_freespacemap contrib module that may do what you need. You'd have to "backport" it to 8.1 though; it doesn't compile as-is. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support