Clustering system tables - Mailing list pgsql-general

From Julian Scarfe
Subject Clustering system tables
Date
Msg-id 035901c532f6$ac576740$0600a8c0@Wilbur
Whole thread Raw
Responses Re: Clustering system tables  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-general
I've got a database (7.4)  whose system tables have been long neglected.
Instead of the 100 or so pages I'd expect for 4000 rows after VACUUM, I've
got 24,000 pages and a mere 1.4 million unused item pointers.

If it were an ordinary table, I'd CLUSTER it, as from experience it would be
vastly quicker than a VACUUM FULL.  But CLUSTER responds with:

ERROR:  "pg_attribute" is a system catalog

Is VACUUM FULL my only option to compact the table?

Julian Scarfe



pgsql-general by date:

Previous
From: Dan Sugalski
Date:
Subject: Server load planning
Next
From: Alvaro Herrera
Date:
Subject: Re: Clustering system tables