Re: Bug #534: factorial function - Mailing list pgsql-bugs

From Thomas Lockhart
Subject Re: Bug #534: factorial function
Date
Msg-id 3C14E29B.B339B9BA@fourpalms.org
Whole thread Raw
In response to Re: Bug #534: factorial function  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Bug #534: factorial function  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> ... I'd be sorely tempted to replace all three by a single
> function that takes integer and returns numeric.

Yikes. Although numeric is theoretically nice, it is hundreds of times
slower than native doubles. We've already moved it in to some of the
other aggregate math functions without much discussion of the
performance hit.

                    - Thomas

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug #534: factorial function
Next
From: Tom Lane
Date:
Subject: Re: Bug #534: factorial function