Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B798C9FC343 for ; Tue, 23 Oct 2007 14:03:05 -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 60513-02 for ; Tue, 23 Oct 2007 14:03:00 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from pd3mo3so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by postgresql.org (Postfix) with ESMTP id 67C1C9FC0FE for ; Tue, 23 Oct 2007 14:03:01 -0300 (ADT) Received: from pd2mr2so.prod.shaw.ca (pd2mr2so-qfe3.prod.shaw.ca [10.0.141.109]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JQD000EYJC0IB50@l-daemon> for pgsql-performance@postgresql.org; Tue, 23 Oct 2007 11:02:24 -0600 (MDT) Received: from pn2ml8so.prod.shaw.ca ([10.0.121.152]) by pd2mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JQD00G7XJC0W280@pd2mr2so.prod.shaw.ca> for pgsql-performance@postgresql.org; Tue, 23 Oct 2007 11:02:25 -0600 (MDT) Received: from [192.168.0.102] ([24.68.192.206]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JQD0019LJBZWBS0@l-daemon> for pgsql-performance@postgresql.org; Tue, 23 Oct 2007 11:02:23 -0600 (MDT) Date: Tue, 23 Oct 2007 10:00:05 -0700 From: Ron St-Pierre Subject: Re: 12 hour table vacuums In-reply-to: <20071023161204.GK18013@alvh.no-ip.org> To: Alvaro Herrera Cc: pgsql-performance@postgresql.org Message-id: <471E2895.4030601@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <471E18ED.3090704@shaw.ca> <20071023161204.GK18013@alvh.no-ip.org> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/261 X-Sequence-Number: 27283 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? > >> 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) >> vacuum_cost_delay = 200 >> vacuum_cost_limit = 100 >> > > Isn't this a bit high? What happens if you cut the delay to, say, 10? > (considering you've lowered the limit to half the default) > > Yes, Tom pointed this out too. I'll lower it and check out the results. Ron