Re: partial "on-delete set null" constraint

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: Rafal Pietrak <rafal(at)ztk-rp(dot)eu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: partial "on-delete set null" constraint
Date: 2015-01-03 18:04:02
Message-ID: 35D8084A-00DF-4FD8-AB5D-71846EF952AE@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> On 03 Jan 2015, at 14:11, Alban Hertroys <haramrae(at)gmail(dot)com> wrote:
>
> On 02 Jan 2015, at 13:31, Rafal Pietrak <rafal(at)ztk-rp(dot)eu> wrote:
>> Would it violate SQL standard (signifficantly), if an "on delete set null" action just ignored all the FK columns that have a "NOT NULL" constraint set?
>
> As I understand it, this is precisely why Boyce-relationality forbids NULLs in primary keys, although I’m not so sure he’s right about that.

Well, that’s embarrassing, it’s only a few weeks since I learned this and I’m already attributing the theory to the wrong database deity! That’s Codd-relationality, of course. Not Boyce.

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2015-01-03 18:08:00 Re: partial "on-delete set null" constraint
Previous Message Adrian Klaver 2015-01-03 18:01:36 Re: partial "on-delete set null" constraint