Allow numeric_fac() to be interrupted, since it can take quite a while for
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2007 15:52:38 +0000 (15:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2007 15:52:38 +0000 (15:52 +0000)
commited7deb87604f42a94cccb1afe60b9ea530747ce3
treecdda962f639c053f5c36516fea878a40fafe1724
parent037b398ce74fbf81a0c3fd6f951f1991250731a9
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.
src/backend/utils/adt/numeric.c