Re: NaNs in numeric_power (was Re: Postgres 11 release notes) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: NaNs in numeric_power (was Re: Postgres 11 release notes)
Date
Msg-id 496.1526478272@sss.pgh.pa.us
Whole thread Raw
In response to Re: NaNs in numeric_power (was Re: Postgres 11 release notes)  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: NaNs in numeric_power (was Re: Postgres 11 release notes)  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> On 15 May 2018 at 22:55, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Here's a proposed patch for that.

> In the case 1 ^ NaN = 1, what should the result scale be?

The result is exact, so I don't see a reason to be worried about its
scale.  Messing with the scale would also require expending even
more code on what is, in the end, a corner case that no users have
expressed concern about.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Memory unit GUC range checks
Next
From: Ashutosh Bapat
Date:
Subject: Re: Expression errors with "FOR UPDATE" and postgres_fdw withpartition wise join enabled.