PL/Python: Add result metadata functions
Peter Eisentraut <peter_e@gmx.net>
PL/Python: Add result metadata functions Add result object functions .colnames, .coltypes, .coltypmods to obtain information about the result column names and types, which was previously not possible in the PL/Python SPI interface. reviewed by Abhijit Menon-Sen
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plpython.sgml | modified | +6 −3 |
| src/pl/plpython/expected/plpython_spi.out | modified | +10 −1 |
| src/pl/plpython/plpy_resultobject.c | modified | +54 −0 |
| src/pl/plpython/plpy_resultobject.h | modified | +4 −0 |
| src/pl/plpython/plpy_spi.c | modified | +2 −0 |
| src/pl/plpython/sql/plpython_spi.sql | modified | +4 −1 |