Re: BUG #17876: Function width_bucket() for float8 input returns value out of range

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17876: Function width_bucket() for float8 input returns value out of range
Дата
Msg-id 3807420.1680093217@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17876: Function width_bucket() for float8 input returns value out of range  (Mats Kindahl <mats@timescale.com>)
Ответы Re: BUG #17876: Function width_bucket() for float8 input returns value out of range  (Mats Kindahl <mats@timescale.com>)
Список pgsql-bugs
Mats Kindahl <mats@timescale.com> writes:
> Attached is a proposed fix for the issue.

Hm.  Aren't you replacing a risk of overflow with a risk of underflow?
I'd be happier about doing this only if isinf(bound2 - bound1), or
the reverse for the other path.  (Seems like we shouldn't need to
check the operand diff separately.)

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17874: Incorrect memory access at gistBuildCallback
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17877: Referencing a system column in a foreign key leads to incorrect memory access