pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mihai Barbos <barbos@moon.ro>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] UNIQUE constraint
Date: Mon, 23 Aug 1999 10:01:07 -0400
Message-ID: <23088.935416867@sss.pgh.pa.us> (raw)
In-Reply-To: <000201beed47$f7dbf140$4a8823d4@gigell>

"Mihai Barbos" <barbos@moon.ro> writes:
> My fault, the correct situation is
> create table TEST    (
>     testkey    something    PRIMARY KEY,
>     testval    something    UNIQUE,
>          .....................
> );

> PRIMARY KEY works OK, but UNIQUE is ignored.

Oh, OK: that bug was noticed and fixed a couple of weeks ago.  If you
have *both* a PRIMARY KEY and a UNIQUE on a different field, the UNIQUE
gets dropped --- both 6.5 and 6.5.1 have this mistake.  See the patch
Thomas Lockhart posted a week or two back.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <23088.935416867@sss.pgh.pa.us>
Permalink:  ../23088.935416867@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23088.935416867@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, barbos@moon.ro, pgsql-sql@hub.org
  Subject: Re: [SQL] UNIQUE constraint
  In-Reply-To: <23088.935416867@sss.pgh.pa.us>

* 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