Re: Vacuum non-clustered tables only

From: Richard Huxton <dev(at)archonet(dot)com>
To: Glen Parker <glenebob(at)nwlink(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Vacuum non-clustered tables only
Date: 2007-05-17 06:10:56
Message-ID: 464BF1F0.6000004@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jamie Deppeler 2007-05-17 07:12:36 Time Zone Error
Previous Message Tom Lane 2007-05-17 05:50:34 Re: Fixing broken permissions for deleted user