cluster index on primary key

From: "Sabin Coanda" <sabin(dot)coanda(at)deuromedia(dot)ro>
To: pgsql-sql(at)postgresql(dot)org
Subject: cluster index on primary key
Date: 2007-06-11 14:31:03
Message-ID: f4jmaj$vaq$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo De León 2007-06-11 14:44:33 Re: cluster index on primary key
Previous Message Kristo Kaiv 2007-06-11 06:28:13 Re: show index from [table]