mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
d0aa965c0a
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 | ||
hstore_plpython2u--1.0.sql | ||
hstore_plpython2u.control | ||
hstore_plpython3u--1.0.sql | ||
hstore_plpython3u.control | ||
hstore_plpython.c | ||
hstore_plpythonu--1.0.sql | ||
hstore_plpythonu.control | ||
Makefile |