Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
В списке pgsql-bugs по дате отправления:
| От | Matthew Nourse |
|---|---|
| Тема | Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery |
| Дата | |
| Msg-id | 4C0235B0.90903@nplus1.com.au обсуждение исходный текст |
| Ответ на | Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
| Ответы |
Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery
|
| Список | pgsql-bugs |
Kevin Grittner wrote: > Tom Lane wrote: > > < NOT NULL constraints at the domain level suck. Don't use 'em. > > +1 > > As someone who uses domains very heavily, I can attest that the > semantics of that are very weak. Whether a domain is nullable > depends almost entirely on the context of its use, which you can't > (and shouldn't try to) anticipate on its declaration. Fair enough, thanks Tom and Kevin for the insights and thanks Bruce for applying the doco patch, that makes things much clearer. 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? Thanks again, Matt
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера