Re: CLUSTER trashing indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jason Davis <jdavis(at)tassie(dot)net(dot)au>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: CLUSTER trashing indexes
Date: 2000-10-22 16:04:47
Message-ID: 3572.972230687@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Jason Davis <jdavis(at)tassie(dot)net(dot)au> writes:
> Have I missed something in the release notes or known bugs list,

From the CLUSTER manual page:

: The table is actually copied to a temporary table in index order, then
: renamed back to the original name. For this reason, all grant
: permissions and other indexes are lost when clustering is performed.

The man page fails to point out that you also lose constraints, etc.
What's left after cluster is not much except the data and the one index.
You can rebuild all that stuff, but it's a pain to have to do so.

This is a really sucky implementation, and fixing it has been on the
TODO list for a long time. We need a way of doing filename versioning
first...

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Scott Favelle 2000-10-22 19:51:11 RE: database design
Previous Message Jason Davis 2000-10-22 08:07:10 CLUSTER trashing indexes