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 1nGkfh-000379-SW for pgsql-jdbc@arkaria.postgresql.org; Sun, 06 Feb 2022 16:45:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nGkfg-0002I6-8j for pgsql-jdbc@arkaria.postgresql.org; Sun, 06 Feb 2022 16:45:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGkfg-0002Hx-1S for pgsql-jdbc@lists.postgresql.org; Sun, 06 Feb 2022 16:45:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGkfZ-0006nL-Mg for pgsql-jdbc@lists.postgresql.org; Sun, 06 Feb 2022 16:45:51 +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 216GjhJP720184; Sun, 6 Feb 2022 11:45:44 -0500 From: Tom Lane To: Thomas Markus cc: pgsql-jdbc@lists.postgresql.org Subject: Re: org.postgresql.util.PSQLException: ERROR: value out of range: underflow In-reply-to: <09536b3a-2ec9-64da-8630-caf7d50c758c@proventis.net> References: <09536b3a-2ec9-64da-8630-caf7d50c758c@proventis.net> Comments: In-reply-to Thomas Markus message dated "Sun, 06 Feb 2022 10:07:15 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <720182.1644165943.1@sss.pgh.pa.us> Date: Sun, 06 Feb 2022 11:45:43 -0500 Message-ID: <720183.1644165943@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Markus 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