Re: BUG #17774: Assert triggered on brin_minmax_multi.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17774: Assert triggered on brin_minmax_multi.c
Дата
Msg-id 3492169.1675872316@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17774: Assert triggered on brin_minmax_multi.c  (Dmitry Dolgov <9erthalion6@gmail.com>)
Ответы Re: BUG #17774: Assert triggered on brin_minmax_multi.c
Список pgsql-bugs
Dmitry Dolgov <9erthalion6@gmail.com> writes:
>> On Wed, Feb 08, 2023 at 10:03:01AM -0500, Tom Lane wrote:
>> I'd believe this argument more readily if the calculation weren't being
>> done in float arithmetic.  Since it is, you're at the mercy of roundoff
>> error ... and that small negative delta could certainly pass for
>> roundoff error.

> Hmm...yeah, good point. In both the reproducer I've posted and the
> backtrace from the thread the delta is indeed rather small.

I bet also it only fails when dealing with IPv6 addresses.
With 32-bit IPv4 addresses, a float8 would have enough mantissa
bits that the calculation wouldn't become imprecise.

            regards, tom lane



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

Предыдущее
От: Dmytro Hanzhelo
Дата:
Сообщение: Re: BUG #17782: ERROR: variable not found in subplan target lists
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #17760: SCRAM authentication fails with "modern" (rsassaPss signature) server certificate