Allow numeric_fac() to be interrupted, since it can take quite a while for

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ab4f1947f3a2a135e7bb01bf06010c54ab5118f8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-06-09T15:52:38Z
Releases: 8.2.5
Allow numeric_fac() to be interrupted, since it can take quite a while for
large inputs.  Also cause it to error out immediately if the result will
overflow, instead of grinding through a lot of calculation first.
Per gripe from Jim Nasby.

Files

PathChange+/−
src/backend/utils/adt/numeric.c modified +10 −1