From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity
Date: Tue, 19 Jul 2022 10:23:34 -0400
Message-ID: <1065325.1658240614@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZ6o+ZLKmAsnD2gGj+qxRvtQRs7JOQrn8jW9tP=M2N0MA@mail.gmail.com>
References: <1c9f27e7-459e-2e05-7129-e9e14ca503b7@matrix.gatewaynet.com>
<CAKFQuwZ6o+ZLKmAsnD2gGj+qxRvtQRs7JOQrn8jW9tP=M2N0MA@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tuesday, July 19, 2022, Achilleas Mantzios <achill@matrix.gatewaynet.com>
> wrote:
>> ERROR: cannot convert infinity to numeric
> The column cept.value contains an infinity. I see nothing unusual in any
> of these queries given that fact. If you try to cast the infinity to
> numeric it will fail. If that doesn’t happen the query won’t fail.
FWIW, PG 14 and later do support infinity in the numeric type.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, achill@matrix.gatewaynet.com
Subject: Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity
In-Reply-To: <1065325.1658240614@sss.pgh.pa.us>
References: <1c9f27e7-459e-2e05-7129-e9e14ca503b7@matrix.gatewaynet.com> <CAKFQuwZ6o+ZLKmAsnD2gGj+qxRvtQRs7JOQrn8jW9tP=M2N0MA@mail.gmail.com> <1065325.1658240614@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox