Fix plperl and pltcl error handling per my previous proposal. SPI

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 35f49941337827c6361af1939b582368022733e2
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-11-21T21:17:07Z
Releases: 8.0.0
Fix plperl and pltcl error handling per my previous proposal.  SPI
operations are now run as subtransactions, so that errors in them
can be reported as ordinary Perl or Tcl errors and caught by the
normal error handling convention of those languages.  Also do some
minor code cleanup in pltcl.c: extract a large chunk of duplicated
code in pltcl_SPI_execute and pltcl_SPI_execute_plan into a shared
subroutine.

Files

PathChange+/−
doc/src/sgml/plperl.sgml modified +8 −4
doc/src/sgml/pltcl.sgml modified +14 −12
doc/src/sgml/release.sgml modified +10 −1
src/pl/plperl/plperl.c modified +74 −18
src/pl/tcl/pltcl.c modified +293 −360
src/pl/tcl/test/runtest modified +2 −0
src/pl/tcl/test/test_queries.sql modified +2 −0
src/pl/tcl/test/test_setup.sql modified +6 −0