Thread: pgsql: Allow numeric_fac() to be interrupted, since it can take quite a

pgsql: Allow numeric_fac() to be interrupted, since it can take quite a

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        numeric.c (r1.86.2.1 -> r1.86.2.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/numeric.c.diff?r1=1.86.2.1&r2=1.86.2.2)