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:28 +0000 (18:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Jan 2007 18:02:28 +0000 (18:02 +0000)
commit037cbd21d01942d828f58adb1211f14cab2712c7
tree31a150abd6d97fad77c7c19a9733d26073151495
parent3d74896478b3d1ce5b2eea7ec5ee94c8cc3fa28f
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