From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix behavior of exp() and power() for infinity inputs.
Date: Mon, 15 Jun 2020 16:13:02 +0900
Message-ID: <20200615071302.GI52676@paquier.xyz> (raw)
In-Reply-To: <1095749.1592194252@sss.pgh.pa.us>
References: <E1jkU7H-00024V-NZ@gemulon.postgresql.org>
<20200615034259.GD52676@paquier.xyz>
<1095749.1592194252@sss.pgh.pa.us>
On Mon, Jun 15, 2020 at 12:10:52AM -0400, Tom Lane wrote:
> Yeah, and presumably Noah's other AIX critters will fail too. I'm curious
> to see what damselfly will say; that's the other old-ish platform we have
> in the farm. Once that reports in, I'm intending to push the attached or
> something close to it. This is more or less the same thing for pow() as
> the current patch did for exp(): handle Inf cases manually and then
> simplify the error checks in the normal path.
Thanks. What you have here looks consistent with what POSIX says:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pow.html
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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-committers@postgresql.org
Cc: michael@paquier.xyz, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix behavior of exp() and power() for infinity inputs.
In-Reply-To: <20200615071302.GI52676@paquier.xyz>
References: <E1jkU7H-00024V-NZ@gemulon.postgresql.org> <20200615034259.GD52676@paquier.xyz> <1095749.1592194252@sss.pgh.pa.us> <20200615071302.GI52676@paquier.xyz>
* 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