| От | Tom Lane |
|---|---|
| Тема | Re: Fix for edge case in date_bin() function |
| Дата | |
| Msg-id | 2425370.1709147204@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Fix for edge case in date_bin() function (Moaaz Assali <ma5679@nyu.edu>) |
| Ответы |
Re: Fix for edge case in date_bin() function
|
| Список | pgsql-hackers |
Moaaz Assali <ma5679@nyu.edu> writes:
> - I have used INT64 -> UINT64 mapping in order to ensure no integer
> overflows are possible.
I don't think I trust this idea, and in any case it doesn't remove
all the overflow hazards: the reduction of the stride interval to
microseconds can overflow, and the final subtraction of the stride
can too. I changed it to just do the straightforward thing
(throwing error if the pg_xxx_s64_overflow routines detect error),
and pushed it. Thanks for the report and patch!
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера