Re: Problem with factorial operator

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>, "PostgreSQL General Help (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problem with factorial operator
Date: 2002-04-18 14:29:31
Message-ID: 200204181429.g3IETV803500@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> Factorial work up to 20. After that one gets negative results.
>
> > I changed the docs to do a 20!.
>
> Don't we have a TODO item to replace the existing factorial functions
> with a NUMERIC implementation?

We do, but until then, we should document a factorial that actually
returns a value in the int8 range. ;-)

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2002-04-18 15:27:14 Re: Help: a rare problem with backing and restoring
Previous Message Michael Loftis 2002-04-18 14:25:21 Re: freebsd install