postgresql/contrib/hstore_plpython
Peter Eisentraut d0aa965c0a Consistently catch errors from Python _New() functions
Python Py*_New() functions can fail and return NULL in out-of-memory
conditions.  The previous code handled that inconsistently or not at
all.  This change organizes that better.  If we are in a function that
is called from Python, we just check for failure and return NULL
ourselves, which will cause any exception information to be passed up.
If we are called from PostgreSQL, we consistently create an "out of
memory" error.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
2017-11-18 13:39:53 -05:00
..
expected Make PL/Python handle domain-type conversions correctly. 2017-11-16 16:23:04 -05:00
sql Make PL/Python handle domain-type conversions correctly. 2017-11-16 16:23:04 -05:00
.gitignore Add transforms feature 2015-04-26 10:33:14 -04:00
Makefile Code review for avoidance of direct cross-module links. 2017-02-02 11:21:16 -05:00
hstore_plpython.c Consistently catch errors from Python _New() functions 2017-11-18 13:39:53 -05:00
hstore_plpython2u--1.0.sql Convert contrib/hstore_plpython to not use direct linking to other modules. 2016-10-03 22:27:11 -04:00
hstore_plpython2u.control Add transforms feature 2015-04-26 10:33:14 -04:00
hstore_plpython3u--1.0.sql Convert contrib/hstore_plpython to not use direct linking to other modules. 2016-10-03 22:27:11 -04:00
hstore_plpython3u.control Add transforms feature 2015-04-26 10:33:14 -04:00
hstore_plpythonu--1.0.sql Convert contrib/hstore_plpython to not use direct linking to other modules. 2016-10-03 22:27:11 -04:00
hstore_plpythonu.control Add transforms feature 2015-04-26 10:33:14 -04:00