Re: Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees.

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: Add trigonometric functions that work in degrees.
Date: 2016-04-15 18:04:35
Message-ID: CA+Tgmoa1fig2OV0Mam3dPmAOhaf6T_E8CXvQsDunvDV9vYEhwg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Fri, Apr 8, 2016 at 5:48 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
>> On 01/22/2016 03:46 PM, Tom Lane wrote:
>>> Add trigonometric functions that work in degrees.
>
>> I have a host here that is having regression test failures from this commit:
>
>> --- src/test/regress/expected/float8.out
>> +++ src/test/regress/results/float8.out
>> @@ -490,9 +490,9 @@
>> x | asind | acosd | atand
>> ------+-------+-------+-------
>> -1 | -90 | 180 | -45
>> - -0.5 | -30 | 120 |
>> + -0.5 | | 120 |
>> 0 | 0 | 90 | 0
>> - 0.5 | 30 | 60 |
>> + 0.5 | | 60 |
>> 1 | 90 | 0 | 45
>> (5 rows)
>
> BTW ... looking closer at that, it appears to show asind(-0.5) and
> asind(0.5) returning NULL. Which makes no sense at all, because
> there is no provision in dasind() for returning a null, regardless
> of the input value.
>
> So I'm pretty baffled. Maybe you could step through this and figure
> out where it's going off the rails?

Peter, are you going to look into this further? This is on the open
items list, but there seems to be nothing that can be done about it by
anyone other than, maybe, you.

If you're not going to look into it, I think we should delete the open
item. There's no point in tracking issues that aren't actionable.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2016-04-15 19:18:36 Re: [COMMITTERS] pgsql: Add new catalog called pg_init_privs
Previous Message Tom Lane 2016-04-15 17:04:22 pgsql: Use less-generic names in matview.sql.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-04-15 18:05:03 Re: Disallow unique index on system columns
Previous Message Robert Haas 2016-04-15 17:44:27 Re: Suspicious behaviour on applying XLOG_HEAP2_VISIBLE.