| От | Tom Lane |
|---|---|
| Тема | Re: Properly mark NULL returns in numeric aggregates |
| Дата | |
| Msg-id | 21646.1586878883@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Properly mark NULL returns in numeric aggregates (David Rowley <dgrowleyml@gmail.com>) |
| Ответы |
Re: Properly mark NULL returns in numeric aggregates
|
| Список | pgsql-hackers |
David Rowley <dgrowleyml@gmail.com> writes:
> For testing, can't we just have an Assert() in
> advance_transition_function that verifies isnull matches the
> nullability of the return value for INTERNAL returning transfns? i.e,
> the attached
FTR, I do not like this Assert one bit. nodeAgg.c has NO business
inquiring into the contents of internal-type Datums. It has even
less business enforcing a particular Datum value for a SQL null ---
we have always, throughout the system, considered that if isnull
is true then the contents of the Datum are unspecified. I think
this is much more likely to cause problems than solve any.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера