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: Euler Taveira <euler@timbira.com.br>
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 18:10:17 -0400
Message-ID: <4591.1525039817@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKJS1f_crLhE5OBKwGOZZQ-gWdJ9=SQ1u+fOzSb+WQQzChCOeA@mail.gmail.com>
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>
	<CAKJS1f_crLhE5OBKwGOZZQ-gWdJ9=SQ1u+fOzSb+WQQzChCOeA@mail.gmail.com>

David Rowley <david.rowley@2ndquadrant.com> writes:
> I wonder if it's better just to hard code these two cases before even
> calling the pow() function.

Yeah, see my followup --- I also found out that SUSv2 (POSIX 1997)
doesn't require either of these special cases, which helps explain
why the inconsistency on older platforms.

Hacking on a patch now.

			regards, tom lane




view thread (15+ messages)  latest in thread

Message-ID: <4591.1525039817@sss.pgh.pa.us>
Permalink:  ../4591.1525039817@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4591.1525039817@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, euler@timbira.com.br, pgsql-hackers@postgresql.org, aki-iwaasa@vt.jp.nec.com
  Subject: Re: power() function in Windows: "value out of range: underflow"
  In-Reply-To: <4591.1525039817@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> <CAKJS1f_crLhE5OBKwGOZZQ-gWdJ9=SQ1u+fOzSb+WQQzChCOeA@mail.gmail.com> <4591.1525039817@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