Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 87FC563221C for ; Thu, 27 May 2010 11:33:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 63017-05 for ; Thu, 27 May 2010 14:33:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id DC2966325E1 for ; Thu, 27 May 2010 11:33:05 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o4REX4k09004; Thu, 27 May 2010 10:33:04 -0400 (EDT) From: Bruce Momjian Message-Id: <201005271433.o4REX4k09004@momjian.us> Subject: Re: Autovacuum in postgres. In-Reply-To: To: venu madhav Date: Thu, 27 May 2010 10:33:04 -0400 (EDT) CC: pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/226 X-Sequence-Number: 38810 venu madhav wrote: > Hi All, > In my application we are using postgres which runs on an embedded > box. I have configured autovacuum to run once for every one hour. It has 5 > different databases in it. When I saw the log messages, I found that it is > running autovacuum on one database every hour. As a result, on my database > autovacuum is run once in 5 hours. Is there any way to make it run it every > hour. What settings did you change to make it run every hour? Also, it will only vacuum tables that need vacuuming. What version of Postgres are you using? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com