X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 85D1D11F872C for ; Tue, 11 Apr 2006 20:53:01 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 1.458 X-Spam-Level: * X-Spam-Status: No, score=1.458 required=5 tests=[AWL=-0.461, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id yWGvpVaKQOuH for ; Tue, 11 Apr 2006 20:52:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx3.surnet.cl (mx3.surnet.cl [216.155.73.182]) by postgresql.org (Postfix) with ESMTP id 22C0011F86AF for ; Tue, 11 Apr 2006 20:52:56 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx3.surnet.cl with ESMTP; 11 Apr 2006 19:52:58 -0400 X-IronPort-AV: i="4.04,113,1144036800"; d="scan'208"; a="3844579:sNHT19535188" Received: from alvh.no-ip.org (201.221.200.14) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 443B7DDC00021679; Tue, 11 Apr 2006 19:52:56 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 9CBF8C2DC22; Tue, 11 Apr 2006 19:52:56 -0400 (CLT) Date: Tue, 11 Apr 2006 19:52:56 -0400 From: Alvaro Herrera To: Chris Hoover Cc: "pgsql-admin@postgresql.org" Subject: Re: Autovacuum ideas Message-ID: <20060411235256.GD16405@surnet.cl> Mail-Followup-To: Chris Hoover , "pgsql-admin@postgresql.org" References: <1d219a6f0604111602m62445e60h425c5dd59219606e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d219a6f0604111602m62445e60h425c5dd59219606e@mail.gmail.com> User-Agent: Mutt/1.5.11+cvs20060330 X-Archive-Number: 200604/106 X-Sequence-Number: 21275 Chris Hoover wrote: > As far as I can tell, there is no way to tell the daemon to only do it's > work between certain hours. Could this be added as an option? In my > situation, I have tables that if vacuumed during the day would cause a > noticeable slowdown to my users and has therefore been deemed unacceptable > by management. This is one thing that is preventing me from turning on > autovacuun,. However, due to the activity on them, they really need to be > vacuumed daily. It would be nice to be able to tell autovacuum to run, but > have a way to tell it to always sleep during these hours (i.e. 7am to 5pm > daily). Has there been any thought into a feature like this? Well, this is something that is (or should be) in the TODO list, but no one has come around with a proposal to implement it yet. I've given it tiny amounts of thought; a system not unlike Unix's crontab might do it. You would specify intervals at which you wish autovacuum to operate on certain groups of tables; or intervals at which you don't want autovac to run at all, etc. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.