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:30 +0000 (15:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2007 15:52:30 +0000 (15:52 +0000)
commite17e40f783da252934b19f43981084b3b1687d84
tree33ca7390d43b3f93cc3579934d2b37672ff81069
parenta4d58727191419b89126f06f23237986cae966fc
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