pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sabin Coanda <sabin.coanda@deuromedia.ro>
To: pgsql-sql@postgresql.org
Subject: cluster index on primary key
Date: Mon, 11 Jun 2007 17:31:03 +0300
Message-ID: <f4jmaj$vaq$1@news.hub.org> (raw)

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 





view thread (2+ messages)  latest in thread

Message-ID: <f4jmaj$vaq$1@news.hub.org>
Permalink:  ../f4jmaj$vaq$1@news.hub.org/
Also on:    postgresql.org/message-id/f4jmaj$vaq$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sabin.coanda@deuromedia.ro
  Subject: Re: cluster index on primary key
  In-Reply-To: <f4jmaj$vaq$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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