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

From Bruce Momjian
Subject Re: [HACKERS] bug in numeric_power() function
Date
Msg-id 200805081926.m48JQ3h05598@momjian.us
Whole thread Raw
In response to Re: [HACKERS] bug in numeric_power() function  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Applied.

---------------------------------------------------------------------------

Bruce Momjian wrote:
> Alvaro Herrera wrote:
> > Bruce Momjian wrote:
> > > 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?
> >
> > But that's about 0^0, not about 0^123.3.  See this other subsection:
> >
> > http://en.wikipedia.org/wiki/Exponentiation#Powers_of_zero
> >
> > 0^123.3 is 0, not 1.
>
> Ah, got it, and I updated the patch to remove the commment about
> "discrete".
>
> --
>   Bruce Momjian  <bruce@momjian.us>        http://momjian.us
>   EnterpriseDB                             http://enterprisedb.com
>
>   + If your life is a hard drive, Christ can be your backup. +


>
> --
> Sent via pgsql-patches mailing list (pgsql-patches@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-patches

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [NOVICE] encoding problems
Next
From: Bernd Helmle
Date:
Subject: Re: Updatable views