postgresql/src/include/executor
Tom Lane c23bd9232f Insert conditional SPI_push/SPI_pop calls into InputFunctionCall,
OutputFunctionCall, and friends.  This allows SPI-using functions to invoke
datatype I/O without concern for the possibility that a SPI-using function
will be called (which could be either the I/O function itself, or a function
used in a domain check constraint).  It's a tad ugly, but not nearly as ugly
as what'd be needed to make this work via retail insertion of push/pop
operations in all the PLs.

This reverts my patch of 2007-01-30 that inserted some retail SPI_push/pop
calls into plpgsql; that approach only fixed plpgsql, and not any other PLs.
But the other PLs have the issue too, as illustrated by a recent gripe from
Christian Schröder.

Back-patch to 8.2, which is as far back as this solution will work.  It's
also as far back as we need to worry about the domain-constraint case, since
earlier versions did not attempt to check domain constraints within datatype
input.  I'm not aware of any old I/O functions that use SPI themselves, so
this should be sufficient for a back-patch.
2009-01-07 20:39:15 +00:00
..
execdebug.h Remove CXT_printf/CXT1_printf macros. If anyone had found them to be of 2006-05-23 15:21:52 +00:00
execdefs.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
execdesc.h Sort reference of include files, "A" - "F". 2006-07-11 16:35:33 +00:00
executor.h Repair failure to check that a table is still compatible with a previously 2007-02-02 00:07:28 +00:00
functions.h Allow include files to compile own their own. 2006-07-13 16:49:20 +00:00
hashjoin.h More include file adjustments. 2006-07-13 18:01:02 +00:00
instrument.h Revert sampling patch for EXPLAIN ANALYZE; it turns out to be too unreliable 2006-06-09 19:30:56 +00:00
nodeAgg.h Allow include files to compile own their own. 2006-07-13 16:49:20 +00:00
nodeAppend.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeBitmapAnd.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeBitmapHeapscan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeBitmapIndexscan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeBitmapOr.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeFunctionscan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeGroup.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeHash.h Convert hash join code to use MinimalTuple format in tuple hash table 2006-06-27 21:31:20 +00:00
nodeHashjoin.h Convert hash join code to use MinimalTuple format in tuple hash table 2006-06-27 21:31:20 +00:00
nodeIndexscan.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
nodeLimit.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeMaterial.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeMergejoin.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeNestloop.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeResult.h Repair oversight in 8.2 change that improved the handling of "pseudoconstant" 2007-02-15 03:07:21 +00:00
nodeSeqscan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeSetOp.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeSort.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeSubplan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeSubqueryscan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeTidscan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeUnique.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
nodeValuesscan.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
spi.h Insert conditional SPI_push/SPI_pop calls into InputFunctionCall, 2009-01-07 20:39:15 +00:00
spi_priv.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
tstoreReceiver.h Ensure that the contents of a holdable cursor don't depend on out-of-line 2008-12-01 17:06:35 +00:00
tuptable.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00