Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery - Mailing list pgsql-bugs

From Matthew Nourse
Subject Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
Date
Msg-id 4C02EFC9.3010302@nplus1.com.au
Whole thread Raw
In response to Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane wrote:
> Matthew Nourse <matthew@nplus1.com.au> writes:
>> As NOT NULL on domains doesn't always prevent a value from becoming NULL
>> (and because it "sucks" :) ) would you consider deprecating the
>> not-null-on-domains feature and then removing it from some future
>> version of PostgreSQL?
>
> We can't really because it's required by SQL standard.  Perhaps at some
> point the standards committee will think it through a little better and
> publish something that resolves the contradictions.  For the moment the
> bottom line is that it's got debatable behavior and is best avoided.
>

Ah, I see.  Thanks again!

Matt

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
Next
From: Greg Stark
Date:
Subject: Re: BUG #5459: Unable to cancel query while in send()