Re: NaNs in numeric_power (was Re: Postgres 11 release notes)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Đặng Minh Hướng <kakalot49(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: NaNs in numeric_power (was Re: Postgres 11 release notes)
Date: 2018-05-16 13:44:32
Message-ID: 496.1526478272@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-www

Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> writes:
> On 15 May 2018 at 22:55, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2018-05-16 13:49:05 Re: Expression errors with "FOR UPDATE" and postgres_fdw with partition wise join enabled.
Previous Message Alexander Korotkov 2018-05-16 13:39:36 Re: Memory unit GUC range checks

Browse pgsql-www by date

  From Date Subject
Next Message Adrian Klaver 2018-05-16 13:48:14 Re: Loss of boldface on syntax synopsis, v10 & devel
Previous Message Greg Sabino Mullane 2018-05-16 13:08:30 Re: Loss of boldface on syntax synopsis, v10 & devel