pgsql: plpython: Add SPI cursor support
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Date: 2011-12-05T17:56:47Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
plpython: Add SPI cursor support
- 89e850e6fda9 9.2.0 cited
plpython: Add SPI cursor support Add a function plpy.cursor that is similar to plpy.execute but uses an SPI cursor to avoid fetching the entire result set into memory. Jan Urbański, reviewed by Steve Singer Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/89e850e6fda9e4e441712012abe971fe938d595a Modified Files -------------- doc/src/sgml/plpython.sgml | 81 +++ src/pl/plpython/expected/plpython_spi.out | 151 +++++ .../plpython/expected/plpython_subtransaction.out | 66 ++ .../expected/plpython_subtransaction_0.out | 70 +++ .../expected/plpython_subtransaction_5.out | 70 +++ src/pl/plpython/expected/plpython_test.out | 6 +- src/pl/plpython/plpython.c | 642 ++++++++++++++++++++ src/pl/plpython/sql/plpython_spi.sql | 116 ++++ src/pl/plpython/sql/plpython_subtransaction.sql | 52 ++ 9 files changed, 1251 insertions(+), 3 deletions(-)