postgresql/src/pl
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
..
plperl Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
plpgsql Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
plpython Consistently catch errors from Python _New() functions 2017-11-18 13:39:53 -05:00
tcl Support domains over composite types in PL/Tcl. 2017-10-26 16:00:17 -04:00
Makefile Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:12 -04:00