mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-19 10:03:23 +02:00
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> |
||
---|---|---|
.. | ||
expected | ||
sql | ||
.gitignore | ||
ltree_plpython2u--1.0.sql | ||
ltree_plpython2u.control | ||
ltree_plpython3u--1.0.sql | ||
ltree_plpython3u.control | ||
ltree_plpython.c | ||
ltree_plpythonu--1.0.sql | ||
ltree_plpythonu.control | ||
Makefile |