postgresql/src/pl/plpython
Kevin Grittner 5ebeb579b9 Follow-on cleanup for the transition table patch.
Commit 59702716 added transition table support to PL/pgsql so that
SQL queries in trigger functions could access those transient
tables.  In order to provide the same level of support for PL/perl,
PL/python and PL/tcl, refactor the relevant code into a new
function SPI_register_trigger_data.  Call the new function in the
trigger handler of all four PLs, and document it as a public SPI
function so that authors of out-of-tree PLs can do the same.

Also get rid of a second QueryEnvironment object that was
maintained by PL/pgsql.  That was previously used to deal with
cursors, but the same approach wasn't appropriate for PLs that are
less tangled up with core code.  Instead, have SPI_cursor_open
install the connection's current QueryEnvironment, as already
happens for SPI_execute_plan.

While in the docs, remove the note that transition tables were only
supported in C and PL/pgSQL triggers, and correct some ommissions.

Thomas Munro with some work by Kevin Grittner (mostly docs)
2017-04-04 18:36:39 -05:00
..
expected Follow-on cleanup for the transition table patch. 2017-04-04 18:36:39 -05:00
po Translation updates 2016-08-08 11:08:00 -04:00
sql Follow-on cleanup for the transition table patch. 2017-04-04 18:36:39 -05:00
.gitignore PL/Python: Improve Python 3 regression test setup 2012-09-16 22:26:33 -04:00
Makefile Fix misplacement of submake-generated-headers prerequisites. 2016-10-01 13:35:13 -04:00
generate-spiexceptions.pl Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
nls.mk Translation updates 2016-05-09 10:04:41 -04:00
plpy_cursorobject.c PL/Python: Add cursor and execute methods to plan object 2017-03-27 11:37:22 -04:00
plpy_cursorobject.h PL/Python: Add cursor and execute methods to plan object 2017-03-27 11:37:22 -04:00
plpy_elog.c Fix typos in comments. 2017-02-06 11:33:58 +02:00
plpy_elog.h Enhanced custom error in PLPythonu 2016-04-08 18:33:06 +03:00
plpy_exec.c Follow-on cleanup for the transition table patch. 2017-04-04 18:36:39 -05:00
plpy_exec.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
plpy_main.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
plpy_main.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_planobject.c PL/Python: Add cursor and execute methods to plan object 2017-03-27 11:37:22 -04:00
plpy_planobject.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_plpymodule.c Fix typos in comments. 2017-02-06 11:33:58 +02:00
plpy_plpymodule.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
plpy_procedure.c Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
plpy_procedure.h Fix PL/Python for recursion and interleaved set-returning functions. 2016-04-05 14:51:19 -04:00
plpy_resultobject.c PL/Python: Add result object str handler 2013-02-03 00:31:01 -05:00
plpy_resultobject.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
plpy_spi.c PL/Python: Add cursor and execute methods to plan object 2017-03-27 11:37:22 -04:00
plpy_spi.h PL/Python: Add cursor and execute methods to plan object 2017-03-27 11:37:22 -04:00
plpy_subxactobject.c Simplify code by getting rid of SPI_push, SPI_pop, SPI_restore_connection. 2016-11-08 17:39:57 -05:00
plpy_subxactobject.h add #includes to plpy_subxactobject.h to make it compile standalone 2012-08-28 16:13:41 -04:00
plpy_typeio.c Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
plpy_typeio.h Fix typos in comments. 2017-02-06 11:33:58 +02:00
plpy_util.c Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpy_util.h Fix memory leaks in PL/Python. 2015-11-05 13:52:40 -05:00
plpython.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
plpython2u--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
plpython2u--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython2u.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython3u--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
plpython3u--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpython3u.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpythonu--1.0.sql Put comments on the installable procedural languages. 2011-07-03 19:03:51 -04:00
plpythonu--unpackaged--1.0.sql Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
plpythonu.control Create extension infrastructure for the core procedural languages. 2011-03-04 21:51:14 -05:00
regress-python3-mangle.mk Fix hstore_plpython test when python3 is used. 2015-10-04 22:29:03 +02:00