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

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

Commit: e17e40f783da252934b19f43981084b3b1687d84
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-06-09T15:52:30Z
Releases: 8.3.0
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