Re: pgsql: Fix behavior of exp() and power() for infinity inputs. - Mailing list pgsql-committers

From Michael Paquier
Subject Re: pgsql: Fix behavior of exp() and power() for infinity inputs.
Date
Msg-id 20200615071302.GI52676@paquier.xyz
Whole thread Raw
In response to Re: pgsql: Fix behavior of exp() and power() for infinity inputs.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql: Fix behavior of exp() and power() for infinity inputs.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
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

Attachment

pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Error message refactoring
Next
From: Peter Eisentraut
Date:
Subject: pgsql: pg_dump: Unbreak dumping of aggregates from very old server vers