Re: Get a list of ALL tables - Mailing list pgsql-admin

From Tom Lane
Subject Re: Get a list of ALL tables
Date
Msg-id 8053.1195514955@sss.pgh.pa.us
Whole thread Raw
In response to Get a list of ALL tables  (Kevin Kempter <kevin@kevinkempterllc.com>)
Responses Re: Get a list of ALL tables  (Kevin Kempter <kevin@kevinkempterllc.com>)
List pgsql-admin
Kevin Kempter <kevin@kevinkempterllc.com> writes:
> I'm working with a client with several highly active 8.1.4 servers. I want to
> run a weekly cron that will vacuum ALL db tables except those with entries in
> pg_autovacuum (where we've setup manual/cron vacuums) in order to eliminate
> transaction ID wraparound failure warnings (which comes up fairly often).

> My question is:
> will a select from pg_tables for each database in the cluster provide me with
> a full table listing for the purposes of ensuring that all tables in the db
> have been vacuumed or are there others I'll need to account for as well ?

Why are you insisting on inventing your own wheel for this, when
"vacuum" without a parameter does that just fine?

            regards, tom lane

pgsql-admin by date:

Previous
From: Kevin Kempter
Date:
Subject: Get a list of ALL tables
Next
From: Kevin Kempter
Date:
Subject: Re: Get a list of ALL tables