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 1fCrwK-0003LS-CL for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Apr 2018 19:24:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fCrwH-0005e0-Sa for pgsql-hackers@arkaria.postgresql.org; Sun, 29 Apr 2018 19:24:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCrwH-0005dh-L3; Sun, 29 Apr 2018 19:24:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fCrwE-00048X-W8; Sun, 29 Apr 2018 19:24:49 +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 w3TJOeoZ022150; Sun, 29 Apr 2018 15:24:40 -0400 From: Tom Lane To: Huong Dangminh cc: Euler Taveira , David Rowley , "pgsql-bugs@lists.postgresql.org" , "Pg Hackers" , Akio Iwaasa Subject: Re: power() function in Windows: "value out of range: underflow" In-reply-to: <75DB81BEEA95B445AE6D576A0A5C9E936A73F5DD@BPXM05GP.gisp.nec.co.jp> References: <75DB81BEEA95B445AE6D576A0A5C9E936A73E741@BPXM05GP.gisp.nec.co.jp> <75DB81BEEA95B445AE6D576A0A5C9E936A73F5DD@BPXM05GP.gisp.nec.co.jp> Comments: In-reply-to Huong Dangminh message dated "Wed, 11 Apr 2018 04:42:04 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22148.1525029880.1@sss.pgh.pa.us> Date: Sun, 29 Apr 2018 15:24:40 -0400 Message-ID: <22149.1525029880@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Huong Dangminh writes: >> 2018-04-11 0:13 GMT-03:00 David Rowley : >>> I can recreate this when building with MSVC 2012. I confirm that I see >>> the same as you. Microsoft are setting errno to EDOM in the above 3 >>> cases, where in Linux the result is still NaN, just the errno is not >>> set. > I updated the patch as David Rowley mentioned. Pushed. I'd mainly note that you need to update all the variant float8 expected-files, not just the primary one. (Sometimes this requires a bit of guesswork, but here we're expecting all platforms to produce the same result. The buildfarm should tell us if I got it wrong.) regards, tom lane