Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity
Дата
Msg-id 1065325.1658240614@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tuesday, July 19, 2022, Achilleas Mantzios <achill@matrix.gatewaynet.com>
> wrote:
>> ERROR:  cannot convert infinity to numeric

> The column cept.value contains an infinity.  I see nothing unusual in any
> of these queries given that fact.  If you try to cast the infinity to
> numeric it will fail.  If that doesn’t happen the query won’t fail.

FWIW, PG 14 and later do support infinity in the numeric type.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: pgsql 10.19 : "ERROR: cannot convert infinity to numeric" except there is no infinity
Следующее
От: Håvar Nøvik
Дата:
Сообщение: Re: How to handle failed COMMIT