Re: CLUSTER. (fwd)

From: "Thalis A(dot) Kalfigopoulos" <thalis(at)cs(dot)pitt(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Cc: dariush(at)ajax(dot)umcs(dot)lublin(dot)pl
Subject: Re: CLUSTER. (fwd)
Date: 2001-06-15 15:42:04
Message-ID: Pine.LNX.4.21.0106151137560.19889-100000@aluminum.cs.pitt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I apologize for my earlier posting. I misinterpreted the term "clustered index".
It's done with CLUSTER indeed. Everything is copied in a temp table which is later renamed to the original table, so all grant perimissions and indeces are lost on this table. Also keep in mind that you'll get new OIDs too (if you are depending on them)

sorry,
thalis

---------- Forwarded message ----------
Date: Fri, 15 Jun 2001 11:32:53 -0400 (EDT)
From: Thalis A. Kalfigopoulos <thalis(at)cs(dot)pitt(dot)edu>
To: Dariusz Pietrzak <dariush(at)ajax(dot)umcs(dot)lublin(dot)pl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] CLUSTER.

Read what the command CLUSTER does. Definately not what you think.
You create clustered indeces as you would any index:
create index lala_idx on lala (col1,col2,...);

cheers,
thalis

On Fri, 15 Jun 2001, Dariusz Pietrzak wrote:

> Hello,
> how can I create clustered index on given table?
> When I try "cluster indexname on tablename" it drops and recreates this
> table, effectively dropping all constraints.
> Can I create clustered index without loosing my foreign key etc
> constraints?
>
> --
> Dariusz Pietrzak
> Certified Nobody
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dick Brooks 2001-06-15 15:43:57 How to reference C function parameters from embedded SQL
Previous Message Dariusz Pietrzak 2001-06-15 15:38:55 Re: CLUSTER.