pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
cluster index on primary key
2+ messages / 2 participants
[nested] [flat]

* cluster index on primary key
@ 2007-06-11 14:31 Sabin Coanda <sabin.coanda@deuromedia.ro>
  2007-06-11 14:44 ` Re: cluster index on primary key Rodrigo De León <rdeleonp@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Sabin Coanda @ 2007-06-11 14:31 UTC (permalink / raw)
  To: pgsql-sql

Hi there,

I'd like to know when I create a primary key on a table, does postgres will 
create automatically an index on that table related to the primary key 
columns, or I have to create it explicitly ?

If I have to create it explicitly, suppose I have tables with a serial 
primary key, or link tables with multiple column primary key. How is 
recommended for the two cases: to create an index on the primary key unique, 
or cluster or both or with none of the two options ?

TIA,
Sabin 





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: cluster index on primary key
  2007-06-11 14:31 cluster index on primary key Sabin Coanda <sabin.coanda@deuromedia.ro>
@ 2007-06-11 14:44 ` Rodrigo De León <rdeleonp@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Rodrigo De León @ 2007-06-11 14:44 UTC (permalink / raw)
  To: pgsql-sql@postgresql.org, "Sabin Coanda" <sabin.coanda@deuromedia.ro>

On 6/11/07, Sabin Coanda <sabin.coanda@deuromedia.ro> wrote:
> I'd like to know when I create a primary key on a table, does postgres will
> create automatically an index on that table related to the primary key
> columns, or I have to create it explicitly ?



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2007-06-11 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-11 14:31 cluster index on primary key Sabin Coanda <sabin.coanda@deuromedia.ro>
2007-06-11 14:44 ` Rodrigo De León <rdeleonp@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox