Re: [HACKERS] BUG with UNIQUE clause - Mailing list pgsql-sql

From Tom Lane
Subject Re: [HACKERS] BUG with UNIQUE clause
Date
Msg-id 19035.937403195@sss.pgh.pa.us
Whole thread Raw
In response to BUG with UNIQUE clause  ("Stéphane FILLON" <fillons@offratel.nc>)
List pgsql-sql
"=?iso-8859-1?Q?St=E9phane_FILLON?=" <fillons@offratel.nc> writes:
> The UNIQUE constraint doesn't work on a field if I use a DEFAULT clause
> on a table.

This sounds closely related to a fix that Thomas Lockhart just made.
IIRC the complained-of symptom was that PRIMARY KEY on one column plus
UNIQUE on another didn't work, but the real problem was that PRIMARY
KEY implies UNIQUE and the table declaration code was getting confused
by two different UNIQUE columns in one table.  It could be that his fix
addresses your problem too.  Check the pghackers archives for the
last couple weeks to find the patch.

            regards, tom lane

pgsql-sql by date:

Previous
From: Molnár László
Date:
Subject: trees in postgres
Next
From: Tom Lane
Date:
Subject: Re: [SQL] to do's?