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 1mBfrp-0007Zp-AR for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 16:05:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mBfro-0007Iw-An for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Aug 2021 16:05:08 +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 1mBfrS-0003J2-4n for pgsql-hackers@lists.postgresql.org; Thu, 05 Aug 2021 16:04:46 +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 1mBfrP-0005JA-It for pgsql-hackers@lists.postgresql.org; Thu, 05 Aug 2021 16:04:45 +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 175G4dOF2394814; Thu, 5 Aug 2021 12:04:39 -0400 From: Tom Lane To: Dean Rasheed cc: Yugo NAGATA , PostgreSQL Hackers Subject: Re: Numeric x^y for negative x In-reply-to: References: <20210720181509.51a037ed0a8cb0f6d3ffda3a@sraoss.co.jp> <20210722141136.573c11dfc06f4dd46b661bca@sraoss.co.jp> Comments: In-reply-to Dean Rasheed message dated "Thu, 29 Jul 2021 19:14:05 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2394812.1628179479.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 05 Aug 2021 12:04:39 -0400 Message-ID: <2394813.1628179479@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Dean Rasheed writes: > On Thu, 22 Jul 2021 at 16:19, Dean Rasheed wr= ote: >> Thanks for looking. Barring any further comments, I'll push this in a f= ew days. > So I have been testing this a lot over the last couple of days, and I > have concluded that the patch works well as far as it goes, but I did > manage to construct another case where numeric_power() loses > precision. I think, though, that it would be better to tackle that as > a separate patch. It looks like castoroides is not happy with this patch: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dcastoroides&dt=3D= 2021-08-01%2008%3A52%3A43 Maybe there's some hidden C99 dependency in what you did? Although pademelon, which is one of our other pre-C99 dinosaurs, doesn't seem to be unhappy. regards, tom lane