Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 86A3A9FC51E for ; Fri, 1 Jun 2007 17:50:38 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 19348-04 for ; Fri, 1 Jun 2007 17:50:34 -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 02C019FC2AE for ; Fri, 1 Jun 2007 17:50:33 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-217-243.bk12-dsl.surnet.cl [201.221.217.243]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l51KoYCG000570; Fri, 1 Jun 2007 13:50:35 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2917532A18; Fri, 1 Jun 2007 16:50:30 -0400 (CLT) Date: Fri, 1 Jun 2007 16:50:30 -0400 From: Alvaro Herrera To: Ron St-Pierre Cc: general Subject: Re: [Fwd: Re: Autovacuum keeps vacuuming a table disabled in pg_autovacuum] Message-ID: <20070601205030.GQ4503@alvh.no-ip.org> References: <46608122.6010408@shaw.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46608122.6010408@shaw.ca> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 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]); Fri, 01 Jun 2007 13:50:36 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/125 X-Sequence-Number: 114948 Ron St-Pierre wrote: > I stopped using autovacuum months ago because of similar problems > (version 8.1.4). Because we do some major inserts and updates about four > times a day, there were a few tables that I didn't want autovacuumed. > Even after I turned autovacuum off for these tables it still tried to > vacuum them while the updates were running. Instead, I just created cron > jobs to vacuum the two tables with the most updates daily, and the one > with the most inserts weekly. Performance has been pretty good. FYI, in 8.2 and up the Xid wraparound problem is considered on a table by table basis, which means that only the tables that have not been vacuumed recently need to be vacuumed. The need for database wide vacuuming is gone. > Time to start VACUUM FULL ANALYZE over the weekend. For Xid wraparound you don't need FULL anyway, in any release. -- Alvaro Herrera http://www.amazon.com/gp/registry/CTMLCN8V17R4 "Find a bug in a program, and fix it, and the program will work today. Show the program how to find and fix a bug, and the program will work forever" (Oliver Silfridge)