Re: pgsql: Fix behavior of exp() and power() for infinity inputs.

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Fix behavior of exp() and power() for infinity inputs.
Date: 2020-06-15 07:13:02
Message-ID: 20200615071302.GI52676@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2020-06-15 09:03:13 pgsql: pg_dump: Unbreak dumping of aggregates from very old server vers
Previous Message Peter Eisentraut 2020-06-15 06:49:10 pgsql: Error message refactoring