Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 183172E2D3B for ; Fri, 16 Nov 2007 07:14:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 12320-06 for ; Fri, 16 Nov 2007 07:13:54 -0400 (AST) Received: from mail.nordicbet.com (mail.nordicbet.com [193.69.167.130]) by postgresql.org (Postfix) with ESMTP id 7EE0A2E1D81 for ; Fri, 16 Nov 2007 07:13:58 -0400 (AST) Received: by mail.nordicbet.com (Postfix, from userid 1009) id 25D1412CC015; Fri, 16 Nov 2007 12:13:55 +0100 (CET) Date: Fri, 16 Nov 2007 12:13:55 +0100 From: Tobias Brox To: =?iso-8859-1?Q?G=E1bor?= Farkas Cc: pgsql-performance@postgresql.org Subject: Re: autovacuum: recommended? Message-ID: <20071116111355.GB1195@mail.nordicbet.com> References: <473D659B.1070008@nekomancer.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <473D659B.1070008@nekomancer.net> Organization: Group Nordicbet User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200711/239 X-Sequence-Number: 27654 [Gábor Farkas - Fri at 10:40:43AM +0100] > my question is: is it recommended to use it? or in other words, should i > only use autovacuum? or it's better to use manual-vacuuming? which one > is the "way of the future" :) ? or should i use both auto-vacuum and > manual-vacuum? Nightly vacuums are great if the activity on the database is very low night time. A combination is also good, the autovacuum will benefit from the nightly vacuum. My gut feeling says it's a good idea to leave autovacuum on, regardless of whether the nightly vacuums have been turned on or not. That being said, we have some huge tables in our database and pretty much traffic, and got quite some performance problems when the autovacuum kicked in and started vacuuming those huge tables, so we're currently running without. Autovacuum can be tuned to not touch those tables, but we've chosen to leave it off.