Re: SET NULL on NOT NULL field - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: SET NULL on NOT NULL field
Date
Msg-id GNELIHDDFBOCMGBFGEFOEEDLCFAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: SET NULL on NOT NULL field  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> "Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> > I just noticed you can do this:
> > create table blah (
> >     a not null references test on delete set null
> > )
>
> > Should that be prevented?
>
> It already does.  Or did you mean disallow the declaration?  I can't see
> anything in SQL92 that recommends disallowing the declaration.

Hmmm, well you do get the 'failed to update null value in not null field'
when you actually delete something from the foreign table, but I guess
there's no reason to actually ban the declaration, as silly as it is...

Chris



pgsql-hackers by date:

Previous
From: Alan Gutierrez
Date:
Subject: Re: Windows Build System was: Win32 port patches
Next
From: Bruce Momjian
Date:
Subject: Replication talk