pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mischa Sandberg <ischamay.andbergsay@activestateway.com>
To: pgsql-performance@postgresql.org
Subject: Re: Equivalent praxis to CLUSTERED INDEX?
Date: Thu, 26 Aug 2004 21:41:04 GMT
Message-ID: <QNsXc.56331$X12.35308@edtnps84> (raw)
In-Reply-To: <1093553043.349.171.camel@vulture.corp.neopolitan.com>
References: <6BCB9D8A16AC4241919521715F4D8BCE475B39@algol.sollentuna.se>
	<1093553043.349.171.camel@vulture.corp.neopolitan.com>

J. Andrew Rogers wrote:
> On Thu, 2004-08-26 at 12:30, Magnus Hagander wrote:
>>IIRC, SQL Server always creates clustered indexes by default for primary
>>keys.
> 
> That would surprise me actually.

Yaz, it should. It doesn't ALWAYS create clustered (unique) index for 
primary keys, but clustered is the default if you just specify

CREATE TABLE Foo (col1, ...
	,PRIMARY KEY(col1, ...)
)

Saying PRIMARY KEY NONCLUSTERED(...) is how you override the default.
	
((Weird to be discussing so much MSSQL here))



view thread (41+ messages)  latest in thread

Message-ID: <QNsXc.56331$X12.35308@edtnps84>
Permalink:  ../QNsXc.56331$X12.35308@edtnps84/
Also on:    postgresql.org/message-id/QNsXc.56331$X12.35308@edtnps84

 · 

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-performance@postgresql.org
  Cc: ischamay.andbergsay@activestateway.com
  Subject: Re: Equivalent praxis to CLUSTERED INDEX?
  In-Reply-To: <QNsXc.56331$X12.35308@edtnps84>

* 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