Re: foreign key restrictions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rafal(at)zorro(dot)isa-geek(dot)com
Cc: "pgsql general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: foreign key restrictions
Date: 2008-08-10 18:53:20
Message-ID: 28309.1218394400@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

rafal(at)zorro(dot)isa-geek(dot)com writes:
>> The reason why is that the SQL spec says so:
>>
>> a) If the <referenced table and columns> specifies a
>> <reference
>> column list>, then the set of <column name>s contained
>> in that <reference column list> shall be equal to the
>> set of <column name>s contained in the <unique column
>> list> of a unique constraint of the referenced table.

> I must admit, the standard is not very easy reading for me; what exactly
> does the standarad mean by "<unique column list>":
> 1. is that a requirement for mathematical properties of that list, or

The point is it says "shall be equal to", not "shall be a superset of".

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message rafal 2008-08-10 20:11:23 Re: foreign key restrictions
Previous Message David Portas 2008-08-10 18:14:49 Re: foreign key restrictions