Add SPI-level support for executing SQL commands with one-time-use plans,
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Apr 2008 03:09:30 +0000 (03:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Apr 2008 03:09:30 +0000 (03:09 +0000)
commit8133be9e48e4904b129b87f5bd192ad0712c56a9
treed3bfebf56931f6df15ffe82295f97653e6116f09
parent5488a9e91acc9bf1db71cb7c7652a5594cf8dba3
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.
doc/src/sgml/spi.sgml
src/backend/executor/spi.c
src/include/executor/spi.h