postgresql/contrib/ltree_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 Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
sql Add CASCADE support for CREATE EXTENSION. 2015-10-03 18:23:40 +02:00
.gitignore
Makefile Code review for avoidance of direct cross-module links. 2017-02-02 11:21:16 -05:00
ltree_plpython.c Consistently catch errors from Python _New() functions 2017-11-18 13:39:53 -05:00
ltree_plpython2u--1.0.sql Avoid direct cross-module links in hstore_plperl and ltree_plpython, too. 2016-10-04 17:49:07 -04:00
ltree_plpython2u.control
ltree_plpython3u--1.0.sql Avoid direct cross-module links in hstore_plperl and ltree_plpython, too. 2016-10-04 17:49:07 -04:00
ltree_plpython3u.control
ltree_plpythonu--1.0.sql Avoid direct cross-module links in hstore_plperl and ltree_plpython, too. 2016-10-04 17:49:07 -04:00
ltree_plpythonu.control