postgresql/contrib/jsonb_plpython
Tom Lane a57d312a77 Support infinity and -infinity in the numeric data type.
Add infinities that behave the same as they do in the floating-point
data types.  Aside from any intrinsic usefulness these may have,
this closes an important gap in our ability to convert floating
values to numeric and/or replace float-based APIs with numeric.

The new values are represented by bit patterns that were formerly
not used (although old code probably would take them for NaNs).
So there shouldn't be any pg_upgrade hazard.

Patch by me, reviewed by Dean Rasheed and Andrew Gierth

Discussion: https://postgr.es/m/606717.1591924582@sss.pgh.pa.us
2020-07-22 19:19:44 -04:00
..
expected Remove contrib/jsonb_plpython's tests for infinity and NaN conversions. 2018-04-02 12:36:21 -04:00
sql Remove contrib/jsonb_plpython's tests for infinity and NaN conversions. 2018-04-02 12:36:21 -04:00
.gitignore Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
jsonb_plpython.c Support infinity and -infinity in the numeric data type. 2020-07-22 19:19:44 -04:00
jsonb_plpython2u--1.0.sql Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpython2u.control Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpython3u--1.0.sql Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpython3u.control Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpythonu--1.0.sql Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00
jsonb_plpythonu.control Transforms for jsonb to PL/Python 2018-03-28 08:37:18 -04:00