Re: [HACKERS] bug in numeric_power() function

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Richard Wang <ruc_wang(at)hotmail(dot)com>
Subject: Re: [HACKERS] bug in numeric_power() function
Date: 2008-05-08 19:26:03
Message-ID: 200805081926.m48JQ3h05598@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Applied.

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

Bruce Momjian wrote:
> Alvaro Herrera wrote:
> > Bruce Momjian wrote:
> > > Tom Lane wrote:
> > > > Bruce Momjian <bruce(at)momjian(dot)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(at)momjian(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-patches

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bernd Helmle 2008-05-08 19:37:19 Re: Updatable views
Previous Message Bruce Momjian 2008-05-08 19:11:59 Re: [NOVICE] encoding problems

Browse pgsql-patches by date

  From Date Subject
Next Message Bernd Helmle 2008-05-08 19:37:19 Re: Updatable views
Previous Message Bruce Momjian 2008-05-08 19:11:59 Re: [NOVICE] encoding problems