Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2B7B065069D for ; Mon, 14 Jul 2008 17:29:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 89235-05 for ; Mon, 14 Jul 2008 17:29:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id AB3CF65068A for ; Mon, 14 Jul 2008 17:29:45 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-95-31-93.bk17-dsl.surnet.cl [190.95.31.93]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m6EKVovg013856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Jul 2008 13:31:56 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 90BB347C83; Mon, 14 Jul 2008 16:29:33 -0400 (CLT) Date: Mon, 14 Jul 2008 16:29:33 -0400 From: Alvaro Herrera To: Chris Hoover Cc: "pgsql-admin@postgresql.org Admin" Subject: Re: 8.3 Autovacuum Questions Message-ID: <20080714202933.GK4050@alvh.no-ip.org> References: <1d219a6f0807141326p16d86505o84642b8d49fa6ad8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1d219a6f0807141326p16d86505o84642b8d49fa6ad8@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Mon, 14 Jul 2008 13:31:56 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/127 X-Sequence-Number: 29737 Chris Hoover escribió: > I just have a couple of quick questions about 8.3 and Autovacuum. > > 1. When autovacuum chooses to vacuum a table, the entire table is vacuumed, > and not just a specified percentage of the table. Correct? Yes. > 2. There is no way, without turning autovacuum off, of excluding > vacuum/analyze during a specific period of time (say during a known peak > usage period). Nope, no way. (You could have a script to update the pg_autovacuum.enabled flag, and change it using cron.) > 3. If I have a PostgreSQL cluster with 10 databases, does > autovacuum_max_workers=3 mean I have a possibility of 3 total workers or 30 > workers (i.e. autovacuum_max_workers * number of db's)? 3 workers total. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.