[COMMITTERS] pgsql: Patch some corner-case bugs in pl/python.

2012-03-13 Thread Tom Lane
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 v

[COMMITTERS] pgsql: Patch some corner-case bugs in pl/python.

2012-03-13 Thread Tom Lane
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 v

[COMMITTERS] pgsql: Fix minor memory leak in PLy_typeinfo_dealloc().

2012-03-13 Thread Tom Lane
Fix minor memory leak in PLy_typeinfo_dealloc(). We forgot to free the per-attribute array element descriptors. Jan UrbaƄski Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/a14fa84693659c4c4a17204406945b29fae3d9c4 Modified Files -- src/pl/plpython/plpy_

[COMMITTERS] pgsql: Create a stack of pl/python "execution contexts".

2012-03-13 Thread Tom Lane
Create a stack of pl/python "execution contexts". This replaces the former global variable PLy_curr_procedure, and provides a place to stash per-call-level information. In particular we create a per-call-level scratch memory context. For the moment, the scratch context is just used to avoid leak

[COMMITTERS] pgsql: pgstattuple: Use a BufferAccessStrategy object to avoid cache-tr

2012-03-13 Thread Robert Haas
pgstattuple: Use a BufferAccessStrategy object to avoid cache-trashing. Jaime Casanova, reviewed by Noah Misch, slightly modified by me. Branch -- master Details --- http://git.postgresql.org/pg/commitdiff/2e46bf67114586835f4a9908f1a1f08ee8ba83a8 Modified Files -- contrib/pg

[COMMITTERS] pgsql: pgstattuple: Add new error case for spgist indexes.

2012-03-13 Thread Robert Haas
pgstattuple: Add new error case for spgist indexes. Extracted from a larger patch by Jaime Casanova, reviewed by Noah Misch. I think this error message could use some more extensive revision, but this at least makes the handling of spgist consistent with what we do for other types of indexes that