postgresql/contrib/jsonb_plpython
Tom Lane a069218163 In jsonb_plpython.c, suppress warning message from gcc 10.
Very recent gcc complains that PLyObject_ToJsonbValue could return
a pointer to a local variable.  I think it's wrong; but the coding
is fragile enough, and the savings of one palloc() minimal enough,
that it seems better to just do a palloc() all the time.  (My other
idea of tweaking the if-condition doesn't suppress the warning.)

Back-patch to v11 where this code was introduced.

Discussion: https://postgr.es/m/21547.1580170366@sss.pgh.pa.us
2020-01-30 18:26:12 -05: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 In jsonb_plpython.c, suppress warning message from gcc 10. 2020-01-30 18:26:12 -05: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