Re: BUG #2948: default null values for not-null domains

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2948: default null values for not-null domains
Дата
Msg-id 11211.1170268436@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #2948: default null values for not-null domains  (Sergiy Vyshnevetskiy <serg@vostok.net>)
Ответы Re: BUG #2948: default null values for not-null domains  (Sergiy Vyshnevetskiy <serg@vostok.net>)
Re: BUG #2948: default null values for not-null domains  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Sergiy Vyshnevetskiy <serg@vostok.net> writes:
> This should fix the problem.

No, not at all.  Consider if you'd written a domain CHECK constraint
that rejects nulls, instead of the easy case.  What we'd really have
to do here is see if domain_in() will accept a NULL.

I'm starting to get the feeling that the entire idea of NOT NULL domains
is broken :-(

            regards, tom lane

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

Предыдущее
От: Sergiy Vyshnevetskiy
Дата:
Сообщение: Re: BUG #2948: default null values for not-null domains
Следующее
От: Sergiy Vyshnevetskiy
Дата:
Сообщение: Re: BUG #2948: default null values for not-null domains