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 1lKB1p-0001og-HZ for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Mar 2021 02:26:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lKB1o-0003kf-FV for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Mar 2021 02:26:20 +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 1lKB1o-0003kY-99 for pgsql-bugs@lists.postgresql.org; Thu, 11 Mar 2021 02:26:20 +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 1lKB1l-0000fc-UR for pgsql-bugs@lists.postgresql.org; Thu, 11 Mar 2021 02:26:19 +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 12B2QGdN2261242; Wed, 10 Mar 2021 21:26:16 -0500 From: Tom Lane To: Levi Aul cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16919: Unexpected precision loss in NUMERIC type during text cast, math operations In-reply-to: References: <16919-64fff49d97341054@postgresql.org> <2218408.1615413608@sss.pgh.pa.us> Comments: In-reply-to Levi Aul message dated "Wed, 10 Mar 2021 18:22:59 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2261240.1615429576.1@sss.pgh.pa.us> Date: Wed, 10 Mar 2021 21:26:16 -0500 Message-ID: <2261241.1615429576@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Levi Aul writes: > It turns out it was actually the *client* I was originally using for > testing my queries (Postico) that was losing precision! The query was fine! I did think of that possibility, but rejected it because you indicated you'd done some server-side tracing to confirm what you were seeing. Oh well. regards, tom lane