Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 3233E9F9F28 for ; Fri, 31 Aug 2007 13:29:42 -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 18699-10 for ; Fri, 31 Aug 2007 13:29:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mir3-fs.mir3.com (mail.mir3.com [65.208.188.100]) by postgresql.org (Postfix) with ESMTP id CBB519F9C2F for ; Fri, 31 Aug 2007 13:29:36 -0300 (ADT) Received: MIR3-FS.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes by MIR3-FS.mir3.com; 31 Aug 2007 09:29:31 -0700 Subject: Re: 8.2 Autovacuum BUG ? From: Mark Lewis To: Pallav Kalva Cc: Alvaro Herrera , Tom Lane , pgsql-performance@postgresql.org In-Reply-To: <46D840EC.1060302@livedatagroup.com> References: <46D83427.60001@livedatagroup.com> <25038.1188574775@sss.pgh.pa.us> <46D83C50.3040409@livedatagroup.com> <20070831161158.GD8046@alvh.no-ip.org> <46D840EC.1060302@livedatagroup.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Fri, 31 Aug 2007 09:29:31 -0700 Message-Id: <1188577771.22730.238.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/401 X-Sequence-Number: 26531 On Fri, 2007-08-31 at 12:25 -0400, Pallav Kalva wrote: > Can you please correct me if I am wrong, I want to understand how this > works. > Based on what you said, it will run autovacuum again when it passes 200M > transactions, as SELECTS are transactions too and are going on these > tables. > But the next time when it runs autovacuum, it shouldnt freeze the tuples > again as they are already frozen and wont generate lot of archive logs ? > Or is this because of it ran autovacuum for the first time on this db ? > just the first time it does this process ? That is correct. The tuples are now frozen, which means that they will not need to be frozen ever again unless you insert/update any records.