postgresql/src/include/executor
Tom Lane deac9488d3 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:38:56 +00:00
..
execdebug.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
execdefs.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
execdesc.h Include a pointer to the query's source text in QueryDesc structs. This is 2009-01-02 20:42:00 +00:00
executor.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
functions.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
hashjoin.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
instrument.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeAgg.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeAppend.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeBitmapAnd.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeBitmapHeapscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeBitmapIndexscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeBitmapOr.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeCtescan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeFunctionscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeGroup.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeHash.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeHashjoin.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeIndexscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeLimit.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeMaterial.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeMergejoin.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeNestloop.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeRecursiveunion.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeResult.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeSeqscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeSetOp.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeSort.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeSubplan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeSubqueryscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeTidscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeUnique.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeValuesscan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeWindowAgg.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodeWorktablescan.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
spi.h Insert conditional SPI_push/SPI_pop calls into InputFunctionCall, 2009-01-07 20:38:56 +00:00
spi_priv.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
tstoreReceiver.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
tuptable.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00