| From: | Dave Cramer <davecramer(at)postgres(dot)rocks> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Thomas Markus <t(dot)markus(at)proventis(dot)net>, pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow |
| Date: | 2022-02-06 18:25:36 |
| Message-ID: | CADK3HHJP9v_wFBJvZwyyWZwM=z85rKKAcGGqAeHYD3f6Jg4SoA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
On Sun, 6 Feb 2022 at 11:45, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 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
>
I mistakenly responded privately and OP responded to that.
Turns out a column was added with the wrong type.
Dave
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Markus | 2022-02-07 05:39:15 | Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow |
| Previous Message | Tom Lane | 2022-02-06 16:45:43 | Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow |