From: | Huong Dangminh <huo-dangminh(at)ys(dot)jp(dot)nec(dot)com> |
---|---|
To: | Euler Taveira <euler(at)timbira(dot)com(dot)br>, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> |
Cc: | "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-11 04:42:04 |
Message-ID: | 75DB81BEEA95B445AE6D576A0A5C9E936A73F5DD@BPXM05GP.gisp.nec.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
Thanks for confirming.
> 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.
> >
> FWIW, I tested in MSVC 2017 (15.6.4) and it worked like expected.
> Looking at [1], it seems there could be nasty bugs when using math functions
> in MSVC < 2013 (or 2015). I don't have some older MSVC here to try
> /fp:OPTIONHERE [2] to see if it makes any difference.
Thanks.
Anyway currently PostgreSQL installers seem not be compiled with MSVC 2017,
so it should be fix for current users?
I updated the patch as David Rowley mentioned.
---
Thanks and best regards,
Dang Minh Huong
NEC Solution Innovators, Ltd.
http://www.nec-solutioninnovators.co.jp/en/
Attachment | Content-Type | Size |
---|---|---|
dpow_NaN_V2.patch | application/octet-stream | 2.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2018-04-11 04:47:27 | Re: power() function in Windows: "value out of range: underflow" |
Previous Message | Euler Taveira | 2018-04-11 04:10:29 | Re: power() function in Windows: "value out of range: underflow" |
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2018-04-11 04:47:27 | Re: power() function in Windows: "value out of range: underflow" |
Previous Message | David Rowley | 2018-04-11 04:39:45 | Re: Boolean partitions syntax |