Add SPI_push/SPI_pop calls so that datatype input and output functions called
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Jan 2007 18:02:40 +0000 (18:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Jan 2007 18:02:40 +0000 (18:02 +0000)
commit3c56c189823fbe0c153b24014347f53a814b77fb
tree598f91cce0e78c3df8b0a0f648867a293dc510d0
parent7ffa436d3c2ac8781d7977bb15312309912ebae5
Add SPI_push/SPI_pop calls so that datatype input and output functions called
by plpgsql can themselves use SPI --- possibly indirectly, as in the case
of domain_in() invoking plpgsql functions in a domain check constraint.
Per bug #2945 from Sergiy Vyshnevetskiy.

Somewhat arbitrarily, I've chosen to back-patch this as far as 8.0.  Given
the lack of prior complaints, it doesn't seem critical for 7.x.
src/pl/plpgsql/src/pl_exec.c