Re: Fix overflow hazard in interval rounding

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix overflow hazard in interval rounding
Дата
Msg-id 2660113.1707849977@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Fix overflow hazard in interval rounding  (Joseph Koshakow <koshy44@gmail.com>)
Ответы Re: Fix overflow hazard in interval rounding  (Joseph Koshakow <koshy44@gmail.com>)
Список pgsql-hackers
Joseph Koshakow <koshy44@gmail.com> writes:
> Attached is a patch that fixes some overflow/underflow hazards that I
> discovered in the interval rounding code.

I think you need to use ereturn not ereport here; see other error
cases in AdjustIntervalForTypmod.

(We'd need ereport in back branches, but this problem seems to
me to probably not be worth back-patching.)

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Joseph Koshakow
Дата:
Сообщение: Fix overflow hazard in interval rounding
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: index prefetching