Re: UNIQUE INDEX and PRIMARY KEY - Mailing list pgsql-general

From Tom Lane
Subject Re: UNIQUE INDEX and PRIMARY KEY
Date
Msg-id 12193.1192909444@sss.pgh.pa.us
Whole thread Raw
In response to UNIQUE INDEX and PRIMARY KEY  ("Kynn Jones" <kynnjo@gmail.com>)
List pgsql-general
"Kynn Jones" <kynnjo@gmail.com> writes:
> In short, my question is: is there a way to designate a pre-existing
> UNIQUE INDEX (based on data contained in NOT NULL fields) as the basis
> for a table's PRIMARY KEY?

No.  If there were, that client software you mention would very likely
still get confused.  Both the SQL standard and a lot of code assume
that the constituents of a PRIMARY KEY are just-plain-columns.

            regards, tom lane

pgsql-general by date:

Previous
From: "Kynn Jones"
Date:
Subject: UNIQUE INDEX and PRIMARY KEY
Next
From: Rainer Bauer
Date:
Subject: Re: 8.2.3: Server crashes on Windows using Eclipse/Junit