Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 36F4B9FC123 for ; Tue, 23 Oct 2007 13:12:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 82595-05-2 for ; Tue, 23 Oct 2007 13:12:09 -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 8A9D49FC136 for ; Tue, 23 Oct 2007 13:12:06 -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 l9NGC6xd026685; Tue, 23 Oct 2007 09:12:07 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id D802847C79; Tue, 23 Oct 2007 13:12:04 -0300 (CLST) Date: Tue, 23 Oct 2007 13:12:04 -0300 From: Alvaro Herrera To: Ron St-Pierre Cc: pgsql-performance@postgresql.org Subject: Re: 12 hour table vacuums Message-ID: <20071023161204.GK18013@alvh.no-ip.org> References: <471E18ED.3090704@shaw.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <471E18ED.3090704@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 09:12:07 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/254 X-Sequence-Number: 27276 Ron St-Pierre wrote: > Okay, here's our system: > postgres 8.1.4 Upgrade to 8.1.10 > 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? > 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) -- Alvaro Herrera Developer, http://www.PostgreSQL.org/ "Someone said that it is at least an order of magnitude more work to do production software than a prototype. I think he is wrong by at least an order of magnitude." (Brian Kernighan)