Re: pg_autovacuum entries

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Anj Adu <fotographs(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_autovacuum entries
Date: 2009-11-01 17:55:57
Message-ID: 20091101175556.GA4428@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Anj Adu escribió:
> Does vacuumdb read pg_autovacuum ?
>
> If not, can I specify multiple comma-separated tables to pass as
> arguments to vacuumdb ? The list of tables that need to be vacuumed
> is a constant and hence easier to manage the vacuuming process.

No, but you can write a simple script to vacuum a list of tables that
you keep on a separate file or such. Something trivial like

while read table; do
vacuumdb -t $table
done < /path/to/tablelist

with proper error handling and reporting etc.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2009-11-01 17:56:59 Re: pg_autovacuum entries
Previous Message Kevin Kempter 2009-11-01 17:22:20 dupes for PK and other UNIQUE indexes