Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 950C89FB641 for ; Thu, 25 Jan 2007 12:23:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 85117-10 for ; Thu, 25 Jan 2007 12:22:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 0F56B9FB666 for ; Thu, 25 Jan 2007 12:22:50 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id F3BCD5644D; Thu, 25 Jan 2007 10:22:49 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Thu, 25 Jan 2007 10:22:47 -0600 Date: Thu, 25 Jan 2007 10:22:47 -0600 From: "Jim C. Nasby" To: Galy Lee Cc: pgsql-hackers@postgresql.org Subject: Re: [PERFORM] how to plan for vacuum? Message-ID: <20070125162246.GF64372@nasby.net> References: <45B6F0A8.1050705@oss.ntt.co.jp> <20070125033917.GD64372@nasby.net> <20070125035202.GI26006@alvh.no-ip.org> <20070125035741.GE64372@nasby.net> <45B88C02.3010802@oss.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45B88C02.3010802@oss.ntt.co.jp> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070125:lee.galy@oss.ntt.co.jp::uOmJUblPyIm/6lF5:000000000000000 0000000000000000000000004pOZ X-Hashcash: 1:20:070125:pgsql-hackers@postgresql.org::jxnmgnWAzGyxBugQ:000000000 0000000000000000000000009RAg X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/1261 X-Sequence-Number: 97162 On Thu, Jan 25, 2007 at 07:52:50PM +0900, Galy Lee wrote: > It is very hard for any normal user to set this correctly. I think the > experience / trial-and-error approach is awful for the user, every DBA > need to be an expert of vacuum to keep the system stable. For vacuum is > still a big threat to the performance, a more intelligent way is needed. Agreed. > So I have proposed the "vacuum in time" feature in previous; just let > vacuum know how long can it runs, and then it will minimize the impact > in the time span for you. Some argue that it should not have the > maintenance window assumption, but the most safely way is to run in the > maintenance window. Most systems I work on don't have a maintenance window. For those that do, the window is at best once a day, and that's nowhere near often enough to be vacuuming any database I've run across. I'm not saying they don't exist, but effort put into restricting vacuums to a maintenance window would serve very few people. It'd be much better to put effort into things like piggyback vacuum. -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)