pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Huong Dangminh <huo-dangminh@ys.jp.nec.com>
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 18:22:42 -0400
Message-ID: <7301.1525040562@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKJS1f_tQSBf8yrn=Z9w4rTfuxLzpt0xUEJiojZEs_gTehmmug@mail.gmail.com>
References: <75DB81BEEA95B445AE6D576A0A5C9E936A73E741@BPXM05GP.gisp.nec.co.jp>
	<CAKJS1f9y5RqPps4i+13k9ry9pHZ2p_pCtZrOke0-4Nkz3POqbg@mail.gmail.com>
	<28607.1525036740@sss.pgh.pa.us>
	<CAKJS1f_tQSBf8yrn=Z9w4rTfuxLzpt0xUEJiojZEs_gTehmmug@mail.gmail.com>

David Rowley <david.rowley@2ndquadrant.com> 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




view thread (15+ messages)  latest in thread

Message-ID: <7301.1525040562@sss.pgh.pa.us>
Permalink:  ../7301.1525040562@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7301.1525040562@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, david.rowley@2ndquadrant.com, huo-dangminh@ys.jp.nec.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: <7301.1525040562@sss.pgh.pa.us>
  References: <75DB81BEEA95B445AE6D576A0A5C9E936A73E741@BPXM05GP.gisp.nec.co.jp> <CAKJS1f9y5RqPps4i+13k9ry9pHZ2p_pCtZrOke0-4Nkz3POqbg@mail.gmail.com> <28607.1525036740@sss.pgh.pa.us> <CAKJS1f_tQSBf8yrn=Z9w4rTfuxLzpt0xUEJiojZEs_gTehmmug@mail.gmail.com> <7301.1525040562@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