| От | Tom Lane |
|---|---|
| Тема | Re: DEFAULT of domain ignored in plpgsql (8.4.1) |
| Дата | |
| Msg-id | 14855.1258818734@sss.pgh.pa.us обсуждение |
| Ответ на | Re: DEFAULT of domain ignored in plpgsql (8.4.1) (Josh Berkus <josh@agliodbs.com>) |
| Ответы |
Re: DEFAULT of domain ignored in plpgsql (8.4.1)
|
| Список | pgsql-hackers |
Josh Berkus <josh@agliodbs.com> writes:
> (2) this change, while very useful, does change what had been a simple
> rule ("All variables are NULL unless specifically set otherwise") into a
> conditional one ("All variables are NULL unless set otherwise OR unless
> they are declared as domain types with defaults"). Do people feel that
> the new behavior would be sufficiently intuitive to avoid user confusion?
I'm inclined to leave it alone. It complicates the mental model, and
frankly attaching defaults to domains was not one of the SQL committee's
better ideas anyway. It's *fundamentally* non-orthogonal.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера