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>
Re: Add overflow test in function numeric_exp. Tom Lane <tgl@sss.pgh.pa.us>
Yang Xiao  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
Дата:
FAQ