Re: pg_autovacuum entries - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: pg_autovacuum entries
Date
Msg-id 20091101175556.GA4428@alvh.no-ip.org
Whole thread Raw
In response to Re: pg_autovacuum entries  (Anj Adu <fotographs@gmail.com>)
List 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.

pgsql-admin by date:

Previous
From: Kevin Kempter
Date:
Subject: dupes for PK and other UNIQUE indexes
Next
From: Alvaro Herrera
Date:
Subject: Re: pg_autovacuum entries