| От | Tom Lane |
|---|---|
| Тема | Re: BUG #2948: default null values for not-null domains |
| Дата | |
| Msg-id | 6933.1170280693@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
|
| Список | pgsql-bugs |
Sergiy Vyshnevetskiy <serg@vostok.net> writes:
> Not at all. What's "broken" is the idea of variable as a simple piece of
> memory. It is correct for base types, but not for domains - they may have
> non-empty constructors (in C++ terminology).
That may be, but I'm unwilling to pay the overhead for *every* variable
when most of them won't be domains. I'm inclined to extend PLpgSQL_type
to include a domain indicator and only do it the hard way when we have to.
[ looks at code... ] Actually, I think we already have the flag we
need: look to see if the typinput function is strict.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера