Re: BUG #14986: -2147483648 is minimum value of integer but-2147483648::integer fails (out of range). - Mailing list pgsql-bugs

From Greg Stark
Subject Re: BUG #14986: -2147483648 is minimum value of integer but-2147483648::integer fails (out of range).
Date
Msg-id CAM-w4HMUwZZZxD7dogCQnNXU_0YC-wkDYOfxz=83vR1tiZrEjg@mail.gmail.com
Whole thread Raw
In response to Re: BUG #14986: -2147483648 is minimum value of integer but-2147483648::integer fails (out of range).  (Andres Freund <andres@anarazel.de>)
Responses Re: BUG #14986: -2147483648 is minimum value of integer but -2147483648::integer fails (out of range).  (Andres Freund <andres@anarazel.de>)
List pgsql-bugs
On 21 December 2017 at 14:13, Andres Freund <andres@anarazel.de> wrote:
> Hi,
>
> On 2017-12-21 14:05:07 +0000, Greg Stark wrote:
>> I wonder why the "out of range" error doesn't print the actual value
>> it's trying to cast. That would help the user here...
>
> We'd have to mark it as non-leakproof in that case.

Damn that's annoying.

But..... uh, isn't it already leaking that the value is not in 99.99999998% of
the bigint range?


-- 
greg


pgsql-bugs by date:

Previous
From: "Todd A. Cook"
Date:
Subject: Re: BUG #14990: hashint4() <> hashint8() for small negative values,causing hash joins to fail
Next
From: PG Bug reporting form
Date:
Subject: BUG #14991: postgis-2.4.so: undefined symbol: GEOSMinimumClearance