BUG with UNIQUE clause - Mailing list pgsql-hackers

From Stéphane FILLON
Subject BUG with UNIQUE clause
Date
Msg-id 000f01befedd$3f26fda0$a6373ad1@portable
Whole thread Raw
Responses Re: [HACKERS] BUG with UNIQUE clause  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,
 
The UNIQUE constraint doesn't work on a field if I use a DEFAULT clause on a table.
 
The following table works with UNIQUE constraint:
 
create table cltclt001(
  tcid int2,
  tcnom text unique
);
 
but this one accept several same tcnom value:
 
create table cltclt001(
  tcid int2 default nextval('cltcls001'),
  tcnom text unique
);
 
 
What's wrong with my table ?
 
Thanks in advance.
 
Stephane FILLON

pgsql-hackers by date:

Previous
From: Theo Kramer
Date:
Subject: Re: [HACKERS] ISO dates with European Format
Next
From: Lamar Owen
Date:
Subject: Re: [HACKERS] Re: HISTORY for 6.5.2