public inbox for [email protected]
help / color / mirror / Atom feedFrom: Thomas Markus <[email protected]>
To: [email protected]
Subject: Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow
Date: Mon, 7 Feb 2022 06:39:15 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
Am 06.02.22 um 17:45 schrieb Tom Lane:
> Thomas Markus <[email protected]> writes:
>> a customer got the exception "org.postgresql.util.PSQLException: ERROR:
>> value out of range: underflow" without any stacktrace etc.
> I'd venture that the cause is some server-side double precision
> arithmetic that underflowed. It's not that hard to hit, eg
>
> postgres=# select 1e-200::float8 * 1e-200::float8;
> ERROR: value out of range: underflow
>
> regards, tom lane
>
>
Dave answered private here:
A double in java cant hold such big numbers. In fits fine in float8
Here one of our developers added a float4 column manually instead of
float8. With float4 its easy to force that error.
regards
Thomas
view thread (8+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox