pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Gavin Sherry <swm@linuxworld.com.au>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-patches@postgresql.org
Subject: Re: Numeric version of factorial()
Date: Sun, 30 Nov 2003 23:48:04 -0500 (EST)
Message-ID: <200312010448.hB14m4016031@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0308011330030.25534-200000@linuxworld.com.au>


Your patch has been added to the PostgreSQL unapplied patches list at:

	http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

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


Gavin Sherry wrote:
> On Thu, 31 Jul 2003, Tom Lane wrote:
> 
> > Gavin Sherry <swm@linuxworld.com.au> writes:
> > > What are your feelings about numeric argument vs. int4/int8 arguments?
> > 
> > Actually I think it'd be fine to take int8.  We'd not be able to cope
> > with any larger input anyway, and the inner loop could be noticeably
> > faster if the control logic just deals with int.
> > 
> > We could leave the factorial(numeric) case open for a future
> > implementation that uses gamma, if anyone gets hot to do it.
> > 
> 
> Attached is a revised patch based on your Tom's comments. It removes
> int[248]fac(), modifies regression tests (which referenced int4fac()), and
> implements a much cleaned numeric_fac().
> 
> > 			regards, tom lane
> > 
> 
> Thanks,
> 
> Gavin

Content-Description: 

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (9+ messages)  latest in thread

Message-ID: <200312010448.hB14m4016031@candle.pha.pa.us>
Permalink:  ../200312010448.hB14m4016031@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200312010448.hB14m4016031@candle.pha.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-docs@postgresql.org
  Cc: pgman@candle.pha.pa.us, swm@linuxworld.com.au, tgl@sss.pgh.pa.us, pgsql-patches@postgresql.org
  Subject: Re: Numeric version of factorial()
  In-Reply-To: <200312010448.hB14m4016031@candle.pha.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