Re: Add overflow test in function numeric_exp.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Add overflow test in function numeric_exp.
Дата
Msg-id 23215.1539094752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Add overflow test in function numeric_exp.  (Yang Xiao <YangX92@hotmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Index Skip Scan
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Support custom socket directory in pg_upgrade