Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id BB50F9FA2C2 for ; Fri, 31 Aug 2007 12:31:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 15951-06 for ; Fri, 31 Aug 2007 12:30:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail1.livedatagroup.com (mail1.livedatagroup.com [216.154.205.166]) by postgresql.org (Postfix) with ESMTP id B360F9FA1C5 for ; Fri, 31 Aug 2007 12:30:56 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail1.livedatagroup.com (Postfix) with ESMTP id 95EADB5DF4 for ; Fri, 31 Aug 2007 11:30:50 -0400 (EDT) Received: from mail1.livedatagroup.com ([192.168.3.224]) by localhost (mail1.livedatagroup.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21663-01 for ; Fri, 31 Aug 2007 11:30:48 -0400 (EDT) Received: from [192.168.2.134] (adsl-074-228-048-194.sip.bct.bellsouth.net [74.228.48.194]) by mail1.livedatagroup.com (Postfix) with ESMTP id E7D53B5D81 for ; Fri, 31 Aug 2007 11:30:47 -0400 (EDT) Message-ID: <46D83427.60001@livedatagroup.com> Date: Fri, 31 Aug 2007 11:30:47 -0400 From: Pallav Kalva User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: 8.2 Autovacuum BUG ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at livedatagroup.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/396 X-Sequence-Number: 26526 Hi, We turned on autovacuums on 8.2 and we have a database which is read only , it is basically a USPS database used only for address lookups (only SELECTS, no updates/deletes/inserts). This database has about 10gig data and yesterday autovacuum started on this database and all of a sudden I see lot of archive logs generated during this time, I guess it might have generated close to 3-4gig data during this period. It was doing only vacuum not vacuum analyze. My question is why does it have to generate so many archive logs on static tables ? I am thinking these archive logs are mostly empty , the reason I am saying that because I noticed that when I restore the db using PITR backups for my reporting db these same logs are recovered in seconds compared to the logs generated while vacuums are not running. Is this a BUG ? or am I missing something here ? Vacuum Settings --------------------- vacuum_cost_delay = 30 vacuum_cost_limit = 150 checkpoint_segments = 64 checkpoint_timeout = 5min checkpoint_warning = 30s autovacuum = on autovacuum_naptime = 120min autovacuum_vacuum_threshold = 500 autovacuum_analyze_threshold = 250 autovacuum_vacuum_scale_factor = 0.001 autovacuum_analyze_scale_factor = 0.001 autovacuum_freeze_max_age = 200000000 autovacuum_vacuum_cost_delay = -1 autovacuum_vacuum_cost_limit = -1 Thanks! Pallav.