Re: Issues with factorial operator - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Issues with factorial operator
Date
Msg-id 16015.1181398924@sss.pgh.pa.us
Whole thread Raw
In response to Issues with factorial operator  ("Jim C. Nasby" <decibel@decibel.org>)
List pgsql-hackers
"Jim C. Nasby" <decibel@decibel.org> writes:
> So at the very least the documentation is confusing:

> The type numeric can store numbers with up to 1000 digits of precision
> and perform calculations exactly.

This documentation is outright wrong.  The grain of truth behind the
statement is that the parser won't let you declare numeric(N) columns
with N > 1000.  But unconstrained numeric can be a lot larger.  The
hard limit of the format seems to be 10^128K.

I agree that a CHECK_FOR_INTERRUPTS in numeric_fac wouldn't be a bad
idea, and we can reject arguments that are clearly going to overflow.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Command tags in create/drop scripts
Next
From: Markus Schiltknecht
Date:
Subject: Re: COPYable logs status