Re: BUG #15085: Domain "not null" constraint doesn't detect a null returned from a resultset

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15085: Domain "not null" constraint doesn't detect a null returned from a resultset
Дата
Msg-id 4593.1519744356@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #15085: Domain "not null" constraint doesn't detect a nullreturned from a resultset  (Daniel Einspanjer <deinspanjer@gmail.com>)
Список pgsql-bugs
Daniel Einspanjer <deinspanjer@gmail.com> writes:
> Tom, please forgive me if this is a non-starter for a suggestion, but what
> about forcing a not null constraint on a column that is declared to be of
> the type of a domain that has a not null constraint?

I don't particularly want to go there.  What happens when you add or drop
the not null constraint on an existing domain type?

In any case, this would amount to positive reinforcement for people who
use domain not null constraints, which IMO is bad practice to start with.
Not everything in the SQL standard is a good idea.

            regards, tom lane


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

Предыдущее
От: Daniel Einspanjer
Дата:
Сообщение: Re: BUG #15085: Domain "not null" constraint doesn't detect a nullreturned from a resultset
Следующее
От: Michael Aiello
Дата:
Сообщение: RE: BUG #15091: to_number() returns incorrect value