Re: [HACKERS] bug in numeric_power() function - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: [HACKERS] bug in numeric_power() function
Date
Msg-id 200805080022.04016.peter_e@gmx.net
Whole thread Raw
In response to Re: [HACKERS] bug in numeric_power() function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I have developed the attached patch which fixes 0 ^ 123.3.
>
> Did you actually read the wikipedia entry you cited?

Considering that 0::float8 ^ 0::float8 yields 1, making the numeric operator
do the same might not be completely unreasonable, but I find the rationale
that it is better for discrete mathematics fairly ludicrous on multiple
levels.

pgsql-patches by date:

Previous
From: Greg Smith
Date:
Subject: Re: [GENERAL] pgbench not setting scale size correctly?
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] bug in numeric_power() function