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

From Richard Huxton
Subject Re: Vacuum non-clustered tables only
Date
Msg-id 464BF1F0.6000004@archonet.com
Whole thread Raw
In response to Vacuum non-clustered tables only  (Glen Parker <glenebob@nwlink.com>)
Responses Re: Vacuum non-clustered tables only
List pgsql-general
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?
>
> (VACUUM [full]; CLUSTER;) is a huge waste of time and resources when you
> have clustered tables.  If there isn't a way to do this, can we consider
> it a feature request?
>
> Perhaps "VACUUM unclustered" or something?

A couple of thoughts:

1. You shouldn't routinely be running VACUUM FULL on a recent installation.
2. Autovacuum should effectively do this, assuming the clustered table
isn't being updated.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fixing broken permissions for deleted user
Next
From: Jamie Deppeler
Date:
Subject: Time Zone Error