-
- Downloads
Improve support for composite types in PL/Python.
Allow PL/Python functions to return arrays of composite types. Also, fix the restriction that plpy.prepare/plpy.execute couldn't handle query parameters or result columns of composite types. In passing, adopt a saner arrangement for where to release the tupledesc reference counts acquired via lookup_rowtype_tupdesc. The callers of PLyObject_ToCompositeDatum were doing the lookups, but then the releases happened somewhere down inside subroutines of PLyObject_ToCompositeDatum, which is bizarre and bug-prone. Instead release in the same function that acquires the refcount. Ed Behn and Ronan Dunklau, reviewed by Abhijit Menon-Sen
Showing
- doc/src/sgml/plpython.sgml 0 additions, 7 deletionsdoc/src/sgml/plpython.sgml
- src/pl/plpython/expected/plpython_composite.out 8 additions, 4 deletionssrc/pl/plpython/expected/plpython_composite.out
- src/pl/plpython/expected/plpython_spi.out 15 additions, 0 deletionssrc/pl/plpython/expected/plpython_spi.out
- src/pl/plpython/expected/plpython_types.out 6 additions, 7 deletionssrc/pl/plpython/expected/plpython_types.out
- src/pl/plpython/expected/plpython_types_3.out 6 additions, 7 deletionssrc/pl/plpython/expected/plpython_types_3.out
- src/pl/plpython/plpy_exec.c 2 additions, 0 deletionssrc/pl/plpython/plpy_exec.c
- src/pl/plpython/plpy_spi.c 1 addition, 6 deletionssrc/pl/plpython/plpy_spi.c
- src/pl/plpython/plpy_typeio.c 18 additions, 17 deletionssrc/pl/plpython/plpy_typeio.c
- src/pl/plpython/sql/plpython_composite.sql 1 addition, 1 deletionsrc/pl/plpython/sql/plpython_composite.sql
- src/pl/plpython/sql/plpython_spi.sql 12 additions, 0 deletionssrc/pl/plpython/sql/plpython_spi.sql
- src/pl/plpython/sql/plpython_types.sql 1 addition, 1 deletionsrc/pl/plpython/sql/plpython_types.sql
Loading
Please register or sign in to comment