Skip site navigation (1) Skip section navigation (2)

pgsql: PL/Python: Add result metadata functions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: PL/Python: Add result metadata functions
Date: 2012-01-30 19:49:47
Message-ID: E1RrxEZ-0001Am-CT@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ee7fa66b19f5454fac07caee4b7798810b579a82

Modified Files
--------------
doc/src/sgml/plpython.sgml                |    9 +++--
src/pl/plpython/expected/plpython_spi.out |   11 +++++-
src/pl/plpython/plpy_resultobject.c       |   54 +++++++++++++++++++++++++++++
src/pl/plpython/plpy_resultobject.h       |    4 ++
src/pl/plpython/plpy_spi.c                |    2 +
src/pl/plpython/sql/plpython_spi.sql      |    5 ++-
6 files changed, 80 insertions(+), 5 deletions(-)

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2012-01-30 20:50:28
Subject: Re: [COMMITTERS] pgsql: Make group commit more effective.
Previous:From: Robert HaasDate: 2012-01-30 18:27:50
Subject: Re: [COMMITTERS] pgsql: Make group commit more effective.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group