Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3D0AB6506D1 for ; Mon, 14 Jul 2008 17:35:41 -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 94600-05 for ; Mon, 14 Jul 2008 17:35:26 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.249]) by postgresql.org (Postfix) with ESMTP id F2D8265068A for ; Mon, 14 Jul 2008 17:35:22 -0300 (ADT) Received: by hs-out-0708.google.com with SMTP id x43so1339119hsb.3 for ; Mon, 14 Jul 2008 13:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=VLZLpH1qP9Dp0LJs8KyepTRdhJRDQfReKUS0zudgCvQ=; b=GxXao1D2soMf5Rzn4OwujEg3BhNkGUdh6k1kvypCebYfDsLX8cWph14ChYgpkEC10d bx+C1Or1v9jhbUfwQLVtmTEk7lk9i5+LwlgDP2PjUS0UOAqmbhT94/CTivA0aWXHPIsd sF99RN+jiaKI+5J1qNTkt4A/lgDGMQdyLIOqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=K7Kodmduc/BuFD3+pEd078/lAhrSE1wTM7Sslb/gs4hlq3tlSj1+87l1jZir8CS2jH BWDPX/I+liMI23QeE2CDb5sP42NaCitFadfS7ce/EZ72j4gMw4ccZ1+eBNab9Sadx7Gn WgsVfqf6Vz/qscp+Jf8KEkIqd5IymMLlh/6Y8= Received: by 10.100.41.8 with SMTP id o8mr10735372ano.82.1216067681860; Mon, 14 Jul 2008 13:34:41 -0700 (PDT) Received: by 10.100.122.6 with HTTP; Mon, 14 Jul 2008 13:34:41 -0700 (PDT) Message-ID: <1d219a6f0807141334s2ca9b2fu1939f6ab80310f51@mail.gmail.com> Date: Mon, 14 Jul 2008 16:34:41 -0400 From: "Chris Hoover" To: "Alvaro Herrera" Subject: Re: 8.3 Autovacuum Questions Cc: "pgsql-admin@postgresql.org Admin" In-Reply-To: <20080714202933.GK4050@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_83196_16718970.1216067681849" References: <1d219a6f0807141326p16d86505o84642b8d49fa6ad8@mail.gmail.com> <20080714202933.GK4050@alvh.no-ip.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/128 X-Sequence-Number: 29738 ------=_Part_83196_16718970.1216067681849 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, Jul 14, 2008 at 4:29 PM, Alvaro Herrera wrote: > Chris Hoover escribi=F3: > > 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 pea= k > > 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=3D3 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. > Alvaro, Thanks a bunch for the concise answers. That is exactly what we needed to confirm. Chris ------=_Part_83196_16718970.1216067681849 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On Mon, Jul 14, 2008 at 4:29 PM, Alvaro = Herrera <alvherre@commandp= rompt.com> wrote:
Chris Hoover escribi=F3:
> I just have a couple of quick questions about 8.= 3 and Autovacuum.
>
> 1.  When autovacuum chooses to vacuum a table, the entire table i= s 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 pe= ak
> 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=3D3 mean I have a possibility of 3 total worker= s or 30
> workers (i.e. autovacuum_max_workers * number of db's)?

3 workers total.

--
Alvaro Herrera                 &nbs= p;              http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Alvaro,

Thanks a bunch for the concise= answers.  That is exactly what we needed to confirm.

Chris
------=_Part_83196_16718970.1216067681849--