Re: Clustering system tables

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Julian Scarfe <julian(at)avbrief(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Clustering system tables
Date: 2005-03-27 19:19:40
Message-ID: 20050327191940.GA7646@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Mar 27, 2005 at 06:59:06PM +0100, Julian Scarfe wrote:
> 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?

Yes. You can't cluster system tables. In theory we could do it (for
some of them) in standalone mode, but we don't support it ATM.

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
Management by consensus: I have decided; you concede.
(Leonard Liu)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bricklen Anderson 2005-03-27 20:27:54 plpgsql no longer exists
Previous Message Julian Scarfe 2005-03-27 17:59:06 Clustering system tables