postgresql/src
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
..
backend Insert conditional SPI_push/SPI_pop calls into InputFunctionCall, 2009-01-07 20:38:56 +00:00
bin Update MinGW so it handles fseeko() similar to Unix. 2009-01-07 03:39:33 +00:00
include Insert conditional SPI_push/SPI_pop calls into InputFunctionCall, 2009-01-07 20:38:56 +00:00
interfaces Don't require pqGetHomeDirectory to succeed if the user has specified 2009-01-07 12:02:46 +00:00
makefiles Allow out-of-tree builds on mingw and cygwin 2009-01-05 09:27:20 +00:00
pl Insert conditional SPI_push/SPI_pop calls into InputFunctionCall, 2009-01-07 20:38:56 +00:00
port Update copyright for 2009. 2009-01-01 17:24:05 +00:00
template Move forgotten comment closer to where it matters. 2008-10-29 16:23:07 +00:00
test Fix executor/spi.h to follow our usual conventions for include files, ie, 2009-01-07 13:44:37 +00:00
timezone Fix new timezone cross-compile rule to avoid a bug in gmake 3.78.1; 2009-01-06 02:25:29 +00:00
tools Make the MSVC build output "32-bit" at the end of the version string, the 2009-01-06 18:37:50 +00:00
tutorial Update copyright for 2009. 2009-01-01 17:24:05 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile SQL/MED catalog manipulation facilities 2008-12-19 16:25:19 +00:00
Makefile.global.in When cross-compiling, allow and require an external zic program to be used 2009-01-05 10:25:59 +00:00
Makefile.shlib Allow out-of-tree builds on mingw and cygwin 2009-01-05 09:27:20 +00:00
nls-global.mk Initialize .pot files with some useful default values. 2009-01-02 15:15:42 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00