Re: power() function in Windows: "value out of range: underflow"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Huong Dangminh <huo-dangminh(at)ys(dot)jp(dot)nec(dot)com>
Cc: Euler Taveira <euler(at)timbira(dot)com(dot)br>, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org>, Akio Iwaasa <aki-iwaasa(at)vt(dot)jp(dot)nec(dot)com>
Subject: Re: power() function in Windows: "value out of range: underflow"
Date: 2018-04-29 19:24:40
Message-ID: 22149.1525029880@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Huong Dangminh <huo-dangminh(at)ys(dot)jp(dot)nec(dot)com> writes:
>> 2018-04-11 0:13 GMT-03:00 David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>:
>>> 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2018-04-29 20:05:24 BUG #15178: не могу найти как получить бэта доступ к программе
Previous Message Michael Meskes 2018-04-28 19:57:36 Re: BUG #15176: ecpg generation error

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2018-04-29 19:36:59 Re: Implementing SQL ASSERTION
Previous Message Tom Lane 2018-04-29 18:28:03 Re: Transform for pl/perl