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

From Tom Lane
Subject Re: SET NULL on NOT NULL field
Date
Msg-id 10766.1043729367@sss.pgh.pa.us
Whole thread Raw
In response to SET NULL on NOT NULL field  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Responses Re: SET NULL on NOT NULL field  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: interactive docs error
Next
From: Kevin Brown
Date:
Subject: Re: pg_dump and inserts