Re: Vacuum non-clustered tables only - Mailing list pgsql-general

From Jim C. Nasby
Subject Re: Vacuum non-clustered tables only
Date
Msg-id 20070517030255.GG14548@nasby.net
Whole thread Raw
In response to Vacuum non-clustered tables only  (Glen Parker <glenebob@nwlink.com>)
List pgsql-general
On Wed, May 16, 2007 at 03:40:27PM -0700, Glen Parker wrote:
> I think I know the answer to this, but...
>
> Is there a semi-easy way vacuum all tables in a database *except* those
> that are clustered?

You could query for tables that aren't clustered and use that to build a
list of VACUUM commands, but a better question is... why? If you create
dead tuples in a CLUSTERed table you still need to vacuum it
eventually... or do you just cluster the database often enough that it
doesn't matter?
--
Jim Nasby                                      decibel@decibel.org
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

pgsql-general by date:

Previous
From: "John D. Burger"
Date:
Subject: Re: cube operations
Next
From: "Justin Pasher"
Date:
Subject: Re: Fixing broken permissions for deleted user