Re: foreign SERIAL keys in weak entity primary keys

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Thomas Hood" <s0096184(at)sms(dot)ed(dot)ac(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: foreign SERIAL keys in weak entity primary keys
Date: 2003-03-10 04:12:16
Message-ID: 10994.1047269536@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Thomas Hood" <s0096184(at)sms(dot)ed(dot)ac(dot)uk> writes:
> The table Inventory has tuples which have minimal candidate key of (IID,
> PackSize), yet for some reason it insists on making IID * WID unique
> columns!

In versions before 7.3, SERIAL implies UNIQUE. If you don't like that,
update ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Björklund 2003-03-10 07:31:02 Re: foreign SERIAL keys in weak entity primary keys
Previous Message Yudha Setiawan 2003-03-10 04:02:54 OOT-Does PostgreSQL has commercial level.