Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F0CC99FC89E for ; Tue, 5 Jun 2007 09:48:14 -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 29809-02-2 for ; Tue, 5 Jun 2007 09:48:11 -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 CABFB9FC906 for ; Tue, 5 Jun 2007 09:47:22 -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 l55ClEcj017308; Tue, 5 Jun 2007 05:47:15 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A385432A29; Tue, 5 Jun 2007 08:47:12 -0400 (CLT) Date: Tue, 5 Jun 2007 08:47:12 -0400 From: Alvaro Herrera To: "Charles.Hou" Cc: pgsql-admin@postgresql.org Subject: Re: Auto Vacuum question? Message-ID: <20070605124712.GA3859@alvh.no-ip.org> References: <1180966368.172224.250500@x35g2000prf.googlegroups.com> <20070604144906.GH4779@alvh.no-ip.org> <1181002036.120310.83340@r19g2000prf.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1181002036.120310.83340@r19g2000prf.googlegroups.com> 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]); Tue, 05 Jun 2007 05:47:16 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/24 X-Sequence-Number: 25692 Charles.Hou wrote: > On 6 4 , 10 49 , alvhe...@commandprompt.com (Alvaro Herrera) wrote: > > It is normal that the tables grow a bit to a stationary state of dead > > space (generated by UPDATE and DELETE). However it is not normal if it > > loses track of that dead space. One thing you can and should do is > > adjust the autovacuum settings (for example lowering the vacuum scale > > factor and threshold values). Another is to correctly set the FSM > > values. > autovacuum_vacuum_scale_factor = 1 # fraction of rel size before > autovacuum_analyze_scale_factor = 1 # fraction of rel size before These values are rather strange; they mean it would wait until the table is populated by as many dead tuples as there are live tuples, before vacuuming it. This is probably too much. Try decreasing the vacuum scale factor to 0.2 or maybe 0.1 and see how it goes. -- Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J "La fuerza no está en los medios físicos sino que reside en una voluntad indomable" (Gandhi)