From: | Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, laetitia(dot)avrot(at)gmail(dot)com |
Subject: | Re: pgsql: Add support for hyperbolic functions, as well as log10(). |
Date: | 2019-03-14 03:06:51 |
Message-ID: | fedafa28-e63b-33f3-5d70-12ff94762a9e@2ndQuadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 3/13/19 5:56 PM, Tom Lane wrote:
> Michael Paquier <michael(at)paquier(dot)xyz> writes:
>> On Tue, Mar 12, 2019 at 11:16:42PM -0400, Tom Lane wrote:
>>> I'm inclined to leave it as-is for a day or so and see if any
>>> other failures turn up, before deciding what to do about it.
>> Fine by me.
> Well, so far jacana is the only critter that's shown any problem.
>
> I don't find any of the possible solutions to be super attractive:
>
> 1. Put in an explicit special case, along the lines of
>
> if (arg1 == 0.0)
> result = arg1; /* Handle 0 and -0 explicitly */
> else
> result = asinh(arg1);
>
> Aside from being ugly, this'd mean that our regression tests weren't
> really exercising the library asinh function at all.
Or we could possibly call the function and then turn a result of -0 into 0?
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-03-14 03:18:27 | Re: pgsql: Add support for hyperbolic functions, as well as log10(). |
Previous Message | Tom Lane | 2019-03-14 02:44:30 | Re: pgsql: Add support for hyperbolic functions, as well as log10(). |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-03-14 03:18:27 | Re: pgsql: Add support for hyperbolic functions, as well as log10(). |
Previous Message | Stephen Frost | 2019-03-14 03:03:26 | Re: Special role for subscriptions |