pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Huong Dangminh <huo-dangminh@ys.jp.nec.com>
Cc: Euler Taveira <euler@timbira.com.br>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Akio Iwaasa <aki-iwaasa@vt.jp.nec.com>
Subject: Re: power() function in Windows: "value out of range: underflow"
Date: Sun, 29 Apr 2018 15:24:40 -0400
Message-ID: <22149.1525029880@sss.pgh.pa.us> (raw)
In-Reply-To: <75DB81BEEA95B445AE6D576A0A5C9E936A73F5DD@BPXM05GP.gisp.nec.co.jp>
References: <75DB81BEEA95B445AE6D576A0A5C9E936A73E741@BPXM05GP.gisp.nec.co.jp>
	<CAKJS1f9y5RqPps4i+13k9ry9pHZ2p_pCtZrOke0-4Nkz3POqbg@mail.gmail.com>
	<CAHE3wgh5HhBiZJonWuJo7oXS41v6T5nYnQ1TVop0TK9T0AzDfw@mail.gmail.com>
	<75DB81BEEA95B445AE6D576A0A5C9E936A73F5DD@BPXM05GP.gisp.nec.co.jp>

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




view thread (15+ messages)  latest in thread

Message-ID: <22149.1525029880@sss.pgh.pa.us>
Permalink:  ../22149.1525029880@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22149.1525029880@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, huo-dangminh@ys.jp.nec.com, euler@timbira.com.br, david.rowley@2ndquadrant.com, pgsql-hackers@postgresql.org, aki-iwaasa@vt.jp.nec.com
  Subject: Re: power() function in Windows: "value out of range: underflow"
  In-Reply-To: <22149.1525029880@sss.pgh.pa.us>
  References: <75DB81BEEA95B445AE6D576A0A5C9E936A73E741@BPXM05GP.gisp.nec.co.jp> <CAKJS1f9y5RqPps4i+13k9ry9pHZ2p_pCtZrOke0-4Nkz3POqbg@mail.gmail.com> <CAHE3wgh5HhBiZJonWuJo7oXS41v6T5nYnQ1TVop0TK9T0AzDfw@mail.gmail.com> <75DB81BEEA95B445AE6D576A0A5C9E936A73F5DD@BPXM05GP.gisp.nec.co.jp> <22149.1525029880@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox