Re: Add overflow test in function numeric_exp. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Add overflow test in function numeric_exp.
Date
Msg-id 23215.1539094752@sss.pgh.pa.us
Whole thread Raw
In response to Add overflow test in function numeric_exp.  (Yang Xiao <YangX92@hotmail.com>)
List pgsql-hackers
Yang Xiao <YangX92@hotmail.com> writes:
> The attachment is the proposal patch for function numeric_exp in 
> src/backend/utils/adt/numeric.c.

Why do we need this?  numeric_exp() already detects result overflow.

regression=# select numeric_exp(10000); 
ERROR:  value overflows numeric format

            regards, tom lane


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Index Skip Scan
Next
From: Tom Lane
Date:
Subject: Re: Support custom socket directory in pg_upgrade