Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 31FC99FA2B1 for ; Thu, 16 Aug 2007 10:28:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93116-02 for ; Thu, 16 Aug 2007 10:28:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id BEEFA9FA0CA for ; Thu, 16 Aug 2007 10:28:19 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-221-172.bk12-dsl.surnet.cl [201.221.221.172]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l7GDSIth008383; Thu, 16 Aug 2007 06:28:19 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 709AE47C55; Thu, 16 Aug 2007 09:28:15 -0400 (CLT) Date: Thu, 16 Aug 2007 09:28:15 -0400 From: Alvaro Herrera To: Jean-David Beyer Cc: pgsql-sql@postgresql.org Subject: Re: Starting autovacuum in postgresql-8.1.9 Message-ID: <20070816132815.GF21236@alvh.no-ip.org> References: <46C44F03.4070606@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46C44F03.4070606@verizon.net> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/3966/Wed Aug 15 17:48:06 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 16 Aug 2007 06:28:19 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/140 X-Sequence-Number: 29078 Jean-David Beyer wrote: > I am running Red Hat Enterprise Linux 5 and postgresql-8.1.9-1.el5 (&c.). > > It seems autovacuum would be a good idea, but I cannot see how to start it, > mainly because I cannot find it. There are autovacuum settings in > postgresql.conf, but they are all commented out. > > Does it suffice to turn them on and restart the postmaster? Or are they off > because autovacuum is not supported? I have looked around in the PostgreSQL > book by Douglas & Douglas and they say it is in a contrib directory, but the > one that makes sense does not seem to contain it. Is it built into the > server now, or is it to be found somewhere else? In particular, pgavd does > not exist anywhere on my system. Contrib existed up to 8.0. Autovacuum was integrated into the server in 8.1. It seems Douglas' book covers only 8.0. You can simply uncomment and turn it on. Note that you will need to enable stats_row_level too. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support