pg.ddx.io  pgsql-www@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Đặng Minh Hướng <kakalot49@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: NaNs in numeric_power (was Re: Postgres 11 release notes)
Date: Wed, 16 May 2018 09:44:32 -0400
Message-ID: <496.1526478272@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEZATCW=3GDB3S92tXsCUxuE9jdEt7HWbHMWyX3Qc9FXP2u3cg@mail.gmail.com>
References: <20180511150852.GA18510@momjian.us>
	<CANHVJ5cOKO6M9iTio0sG_pyrPnifUiGrcXC_gjmVtirX2Wpu+w@mail.gmail.com>
	<20180514202850.GE5217@momjian.us>
	<CAKJS1f-XnmWDfuAibBGObmCGRoHo7tbuMebzAMUtxfJg+bUOcg@mail.gmail.com>
	<18049.1526392887@sss.pgh.pa.us>
	<CAKJS1f_xVHwGkR0iL=AsFbJERm6-di=B3z4YW1DZMs4WgfQwyQ@mail.gmail.com>
	<10898.1526421338@sss.pgh.pa.us>
	<CAEZATCW=3GDB3S92tXsCUxuE9jdEt7HWbHMWyX3Qc9FXP2u3cg@mail.gmail.com>

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




view thread (7+ messages)  latest in thread

Message-ID: <496.1526478272@sss.pgh.pa.us>
Permalink:  ../496.1526478272@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/496.1526478272@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-www@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dean.a.rasheed@gmail.com, david.rowley@2ndquadrant.com, bruce@momjian.us, kakalot49@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: NaNs in numeric_power (was Re: Postgres 11 release notes)
  In-Reply-To: <496.1526478272@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox