Re: BUG #17876: Function width_bucket() for float8 input returns value out of range - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17876: Function width_bucket() for float8 input returns value out of range
Date
Msg-id 3807420.1680093217@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17876: Function width_bucket() for float8 input returns value out of range  (Mats Kindahl <mats@timescale.com>)
Responses Re: BUG #17876: Function width_bucket() for float8 input returns value out of range
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17874: Incorrect memory access at gistBuildCallback
Next
From: PG Bug reporting form
Date:
Subject: BUG #17877: Referencing a system column in a foreign key leads to incorrect memory access