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:47 +0000 (15:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2007 15:52:47 +0000 (15:52 +0000)
commitf3b600c3182ad67ff30196db3f5e0a71e9184ae1
tree6159393a4468a1e88b71235ea1dd1df685f7cf63
parent093affd249c61518146b0a5006726d4fdb433021
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