]> granicus.if.org Git - postgresql/commit
PL/Python: Add result metadata functions
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 30 Jan 2012 19:38:52 +0000 (21:38 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 30 Jan 2012 19:38:52 +0000 (21:38 +0200)
commitee7fa66b19f5454fac07caee4b7798810b579a82
tree2cb224c8f99c3626f562f14fa7aa9b6990465010
parentc6ea8ccea6bf23501962ddc7ac9ffdb99c8643e1
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
doc/src/sgml/plpython.sgml
src/pl/plpython/expected/plpython_spi.out
src/pl/plpython/plpy_resultobject.c
src/pl/plpython/plpy_resultobject.h
src/pl/plpython/plpy_spi.c
src/pl/plpython/sql/plpython_spi.sql