Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDo8S-00023G-Bn for pgsql-general@arkaria.postgresql.org; Tue, 19 Jul 2022 14:23:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDo8R-0005Em-8E for pgsql-general@arkaria.postgresql.org; Tue, 19 Jul 2022 14:23:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDo8Q-0005Ed-Ui for pgsql-general@lists.postgresql.org; Tue, 19 Jul 2022 14:23:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDo8O-0001B1-SS for pgsql-general@lists.postgresql.org; Tue, 19 Jul 2022 14:23:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26JENYdn1065326; Tue, 19 Jul 2022 10:23:34 -0400 From: Tom Lane To: "David G. Johnston" cc: Achilleas Mantzios , "pgsql-general@lists.postgresql.org" Subject: Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity In-reply-to: References: <1c9f27e7-459e-2e05-7129-e9e14ca503b7@matrix.gatewaynet.com> Comments: In-reply-to "David G. Johnston" message dated "Tue, 19 Jul 2022 07:19:18 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1065324.1658240614.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 19 Jul 2022 10:23:34 -0400 Message-ID: <1065325.1658240614@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Tuesday, July 19, 2022, Achilleas Mantzios > 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