Allow numeric_fac() to be interrupted, since it can take quite a while for
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/numeric.c | modified | +10 −1 |