Add SPI-level support for executing SQL commands with one-time-use plans,

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

Commit: d5466e38f0fbc196b250d082bdab62728de036f9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-04-01T03:09:30Z
Releases: 8.4.0
Add SPI-level support for executing SQL commands with one-time-use plans,
that is commands that have out-of-line parameters but the plan is prepared
assuming that the parameter values are constants.  This is needed for the
plpgsql EXECUTE USING patch, but will probably have use elsewhere.

This commit includes the SPI functions and documentation, but no callers
nor regression tests.  The upcoming EXECUTE USING patch will provide
regression-test coverage.  I thought committing this separately made
sense since it's logically a distinct feature.

Files

PathChange+/−
doc/src/sgml/spi.sgml modified +301 −11
src/backend/executor/spi.c modified +169 −39
src/include/executor/spi.h modified +10 −1