mirror of
https://github.com/postgres/postgres.git
synced 2026-02-11 23:03:25 -05:00
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 |
||
|---|---|---|
| .. | ||
| plpython_composite.sql | ||
| plpython_do.sql | ||
| plpython_drop.sql | ||
| plpython_error.sql | ||
| plpython_global.sql | ||
| plpython_import.sql | ||
| plpython_newline.sql | ||
| plpython_params.sql | ||
| plpython_populate.sql | ||
| plpython_quote.sql | ||
| plpython_record.sql | ||
| plpython_schema.sql | ||
| plpython_setof.sql | ||
| plpython_spi.sql | ||
| plpython_subtransaction.sql | ||
| plpython_test.sql | ||
| plpython_trigger.sql | ||
| plpython_types.sql | ||
| plpython_unicode.sql | ||
| plpython_void.sql | ||