Patch some corner-case bugs in pl/python.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Mar 2012 19:26:32 +0000 (15:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Mar 2012 19:26:32 +0000 (15:26 -0400)
commit5cd72c7a7c7bd76ab028e1dc59d90a47750acebe
treec8200b31b4b15951a16a5cb0bb42f9805360574d
parenta14fa84693659c4c4a17204406945b29fae3d9c4
Patch some corner-case bugs in pl/python.

Dave Malcolm of Red Hat is working on a static code analysis tool for
Python-related C code.  It reported a number of problems in plpython,
most of which were failures to check for NULL results from object-creation
functions, so would only be an issue in very-low-memory situations.

Patch in HEAD and 9.1.  We could go further back but it's not clear that
these issues are important enough to justify the work.

Jan UrbaƄski
src/pl/plpython/plpy_elog.c
src/pl/plpython/plpy_main.c
src/pl/plpython/plpy_plpymodule.c
src/pl/plpython/plpy_spi.c
src/pl/plpython/plpy_typeio.c