Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id A8F8A9FB92C for ; Tue, 13 Feb 2007 12:34:41 -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 29637-01 for ; Tue, 13 Feb 2007 12:34:23 -0400 (AST) X-Greylist: delayed 00:25:55.921277 by SQLgrey-1.7.4 Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by postgresql.org (Postfix) with ESMTP id 17D1E9FB8FE for ; Tue, 13 Feb 2007 12:34:23 -0400 (AST) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 092791AF347; Tue, 13 Feb 2007 11:08:24 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Tue, 13 Feb 2007 11:08:24 -0500 X-Sasl-enc: /Lo5oyabErRQyBiY7EU+HJ0pWgB4aqr9Pn6EC1vU92FU 1171382902 Received: from [192.168.0.96] (ool-435121e8.dyn.optonline.net [67.81.33.232]) by mail.messagingengine.com (Postfix) with ESMTP id 283ACE512; Tue, 13 Feb 2007 11:08:21 -0500 (EST) Message-ID: <45D1E278.4030602@tocr.com> Date: Tue, 13 Feb 2007 11:08:24 -0500 From: "Matthew T. O'Connor" Organization: Terrie O'Connor Realtors User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Michael Goldner CC: pgsql-admin@postgresql.org Subject: Re: Is it normal for Autovacuum running continuously? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200702/178 X-Sequence-Number: 24643 Yes, because all these messages really mean is that autovacuum woke up, and looked at database xx, it may or may not have decided to do anything (analyze or vacuum) and judging by the fact that these messages are almost exactly 1 minute apart, I would say that autovacuum never felt the need to take action during this log segment. One of the deficiencies in autovacuum in 8.1 is that it's not easy to know when autovacuum actually did take action. This is somewhat improved in 8.2. Michael Goldner wrote: > I notice in my postgres logfile that autovacuum is running every minute. > The server had no overnight activity, yet this has been going on for days. > Overall performance of the database seems to be slow, and I assume that it > is related. > > I'm running 8.1.4 on Redhat EL4.3. > > Is this normal for autovacuum? > > Here is the tail of the log (even though it doesn't say much): > > [4836---2007-02-13 08:28:28.194 EST]LOG: autovacuum: processing database > "xx" > [4859---2007-02-13 08:29:28.200 EST]LOG: autovacuum: processing database > "xx" > [4863---2007-02-13 08:30:28.196 EST]LOG: autovacuum: processing database > "xx" > [4865---2007-02-13 08:31:28.191 EST]LOG: autovacuum: processing database > "xx" > [4870---2007-02-13 08:32:28.201 EST]LOG: autovacuum: processing database > "xx" > [4916---2007-02-13 08:34:23.555 EST]LOG: autovacuum: processing database > "xx" > [4921---2007-02-13 08:35:23.550 EST]LOG: autovacuum: processing database > "xx" > [4923---2007-02-13 08:36:23.555 EST]LOG: autovacuum: processing database > "xx" > [4959---2007-02-13 08:37:27.169 EST]LOG: autovacuum: processing database > "xx" > [4965---2007-02-13 08:38:27.165 EST]LOG: autovacuum: processing database > "xx" > [5057---2007-02-13 08:39:27.178 EST]LOG: autovacuum: processing database > "xx" > > Thanks, > > Mike >