Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id D70E19FB24A for ; Wed, 10 Jan 2007 23:11:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 16914-03 for ; Wed, 10 Jan 2007 23:10:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id DF9BD9FB235 for ; Wed, 10 Jan 2007 23:10:59 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-100-202.bk7-dsl.surnet.cl [200.126.100.202]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l0B3AeYq011985; Wed, 10 Jan 2007 19:10:45 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BDC9D329F9; Thu, 11 Jan 2007 00:10:34 -0300 (CLST) Date: Thu, 11 Jan 2007 00:10:34 -0300 From: Alvaro Herrera To: "Jim C. Nasby" Cc: Jeremy Haile , pgsql-performance@postgresql.org Subject: Re: High inserts, bulk deletes - autovacuum vs scheduled vacuum Message-ID: <20070111031034.GG15378@alvh.no-ip.org> Mail-Followup-To: "Jim C. Nasby" , Jeremy Haile , pgsql-performance@postgresql.org References: <1168363601.5177.1168380907@webmail.messagingengine.com> <20070110203556.GX12217@nasby.net> <1168461780.9408.1168619515@webmail.messagingengine.com> <20070110212125.GZ12217@nasby.net> <1168465722.17889.1168630713@webmail.messagingengine.com> <20070111012709.GG12217@nasby.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070111012709.GG12217@nasby.net> 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]); Wed, 10 Jan 2007 19:10:50 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/164 X-Sequence-Number: 22765 Jim C. Nasby wrote: > > Is the best way to do that usually to lower the scale factors? Is it > > ever a good approach to lower the scale factor to zero and just set the > > thresholds to a pure number of rows? (when setting it for a specific > > table) > > The problem is what happens if autovac goes off and starts vacuuming > some large table? While that's going on your queue table is sitting > there bloating. If you have a separate cronjob to handle the queue > table, it'll stay small, especially in 8.2. You mean "at least in 8.2". In previous releases, you could vacuum that queue table until you were blue on the face, but it would achieve nothing because it would consider that the dead tuples were visible to a running transaction: that running the vacuum on the large table. This is an annoyance that was fixed in 8.2. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.