Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4EFE29FC27C for ; Tue, 23 Oct 2007 15:25:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 82061-03-2 for ; Tue, 23 Oct 2007 15:25:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 22CD49FC680 for ; Tue, 23 Oct 2007 15:22:03 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-215-196.bk12-dsl.surnet.cl [201.221.215.196]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l9NIM3Cw000691; Tue, 23 Oct 2007 11:22:04 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3A45547C79; Tue, 23 Oct 2007 15:22:02 -0300 (CLST) Date: Tue, 23 Oct 2007 15:22:02 -0300 From: Alvaro Herrera To: Ron St-Pierre Cc: pgsql-performance@postgresql.org Subject: Re: 12 hour table vacuums Message-ID: <20071023182202.GM18013@alvh.no-ip.org> References: <471E18ED.3090704@shaw.ca> <20071023161204.GK18013@alvh.no-ip.org> <471E2895.4030601@shaw.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <471E2895.4030601@shaw.ca> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/4572/Tue Oct 23 00:50:50 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 23 Oct 2007 11:22:05 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/265 X-Sequence-Number: 27287 Ron St-Pierre wrote: > Alvaro Herrera wrote: >> Ron St-Pierre wrote: >> >> >>> Okay, here's our system: >>> postgres 8.1.4 >>> >> >> Upgrade to 8.1.10 >> > Any particular fixes in 8.1.10 that would help with this? I don't think so, but my guess is that you really want to avoid the autovacuum bug which makes it vacuum without FREEZE on template0, that has caused so many problems all over the planet. >>> Here's the table information: >>> The table has 140,000 rows, 130 columns (mostly NUMERIC), 60 indexes. >> >> 60 indexes? You gotta be kidding. You really have 60 columns on which >> to scan? >> >> > Really. 60 indexes. They're the most commonly requested columns for company > information (we believe). Any ideas on testing our assumptions about that? > I would like to know definitively what are the most popular columns. Do you > think that rules would be a good approach for this? (Sorry if I'm getting > way off topic here) As Josh Drake already said, you can check pg_stat* views to see which indexes are not used. Hard to say anything else without seeing the definition. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support