Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCuiX-0007Q3-QU for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Apr 2018 22:22:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCuiU-0002Ox-VY for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Apr 2018 22:22:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCuiU-0002On-Kb for pgsql-hackers@lists.postgresql.org; Sun, 29 Apr 2018 22:22:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCuiR-0003Ll-Tq for pgsql-hackers@postgresql.org; Sun, 29 Apr 2018 22:22:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w3TMMgYo007302; Sun, 29 Apr 2018 18:22:42 -0400 From: Tom Lane To: David Rowley cc: Huong Dangminh , Pg Hackers , Akio Iwaasa Subject: Re: power() function in Windows: "value out of range: underflow" In-reply-to: References: <75DB81BEEA95B445AE6D576A0A5C9E936A73E741@BPXM05GP.gisp.nec.co.jp> <28607.1525036740@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Mon, 30 Apr 2018 10:10:34 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7300.1525040562.1@sss.pgh.pa.us> Date: Sun, 29 Apr 2018 18:22:42 -0400 Message-ID: <7301.1525040562@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > Wouldn't this machine have returned 1 before this patch though? No, don't think so, because it doesn't set EDOM for the case. Basically what we're doing here is making sure that we get results conforming to current POSIX even on machines that predate that standard. There are more of them floating around than I'd have expected, but it still seems like a good change to make. Maybe there's an argument for not back-patching, though? regards, tom lane