pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: ddurst@larubber.com
Cc: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
Date: Wed, 22 Jan 2003 01:53:11 -0800 (PST)
Message-ID: <20030122095311.49903.qmail@web80313.mail.yahoo.com> (raw)
In-Reply-To: <34547.216.86.192.34.1043230292.squirrel@www.la-rubber.com>


--- David Durst <ddurst@larubber.com> wrote:
> Can anyone tell me why postgres is creating a
> implicit index when
> I already have a PKEY specified????
> 
> Or am I just interpreting this all wrong?

  PostgreSQL uses UNIQUE INDEX to enforce PRIMARY KEY
constraint. Therefore creating a PRIMARY KEY will
automatically create a UNIQUE INDEX.

ludwig.


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com



view thread (2+ messages)  latest in thread

Message-ID: <20030122095311.49903.qmail@web80313.mail.yahoo.com>
Permalink:  ../20030122095311.49903.qmail@web80313.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030122095311.49903.qmail@web80313.mail.yahoo.com

 · 

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: lud_nowhere_man@yahoo.com, ddurst@larubber.com
  Subject: Re: NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
  In-Reply-To: <20030122095311.49903.qmail@web80313.mail.yahoo.com>

* 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