Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
Дата
Msg-id 1964.1275242054@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery  (Matthew Nourse <matthew@nplus1.com.au>)
Ответы Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
Список pgsql-bugs
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.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5484: sum() bug
Следующее
От: Matthew Nourse
Дата:
Сообщение: Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery