Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Markus <t(dot)markus(at)proventis(dot)net>
Cc: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow
Date: 2022-02-06 16:45:43
Message-ID: 720183.1644165943@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Thomas Markus <t(dot)markus(at)proventis(dot)net> 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2022-02-06 18:25:36 Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow
Previous Message Thomas Markus 2022-02-06 09:07:15 org.postgresql.util.PSQLException: ERROR: value out of range: underflow