X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A65AC528C1 for ; Thu, 2 Jun 2005 13:10:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47356-05 for ; Thu, 2 Jun 2005 16:10:28 +0000 (GMT) Received: from outbound.mailhop.org (outbound.mailhop.org [63.208.196.171]) by svr1.postgresql.org (Postfix) with ESMTP id DB7795289D for ; Thu, 2 Jun 2005 13:10:26 -0300 (ADT) Received: from ool-4350c7ad.dyn.optonline.net ([67.80.199.173] helo=[192.168.0.66]) by outbound.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.51) id 1DdsH8-000AMO-5C; Thu, 02 Jun 2005 12:10:30 -0400 X-Mail-Handler: MailHop Outbound by DynDNS.org X-Originating-IP: 67.80.199.173 X-Report-Abuse-To: abuse@dyndns.org (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: zeut Message-ID: <429F2F73.8050406@zeut.net> Date: Thu, 02 Jun 2005 12:10:27 -0400 From: "Matthew T. O'Connor" Organization: Terrie O'Connor Realtors User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mindaugas Riauba Cc: Tom Lane , pgsql-performance@postgresql.org Subject: Re: How to avoid database bloat References: <00d501c5667d$8cc12320$f20214ac@bite.lt> <13878.1117636799@sss.pgh.pa.us> <018601c56744$9d5aae50$f20214ac@bite.lt> <13178.1117719939@sss.pgh.pa.us> <02db01c5677e$d43d3b10$f20214ac@bite.lt> In-Reply-To: <02db01c5677e$d43d3b10$f20214ac@bite.lt> Content-Type: text/plain; charset=windows-1257; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/46 X-Sequence-Number: 12684 Mindaugas Riauba wrote: >>AFAICT the vacuum is doing what it is supposed to, and the problem has >>to be just that it's not being done often enough. Which suggests either >>an autovacuum bug or your autovacuum settings aren't aggressive enough. >> >> > > -D -d 1 -v 1000 -V 0.5 -a 1000 -A 0.1 -s 10 > > That is autovacuum settings. Should be aggressive enough I think? > > Might e aggressive enough, but might not. I have seen some people run -V 0.1. Also you probably don't need -A that low. This could an issue where analyze results in an inaccurate reltuples value which is preventing autovacuum from doing it's job. Could you please run it with -d 2 and show us the relevant log output. >>Which PG version is this exactly? Some of the earlier autovacuum >>releases do have known bugs, so it'd be worth your while to update >>if you're not on the latest point release of your series. >> >> > > 8.0.3 > > That should be fine.