Remove inappropriate memory context switch in shutdown_MultiFuncCall().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2008 18:49:42 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2008 18:49:42 +0000 (18:49 +0000)
commitf5eee756e3a85671c56823f2644caab95c7a8ebc
tree60c274506bf76214f76217d149d5a87b5aef5a5d
parent37b1ceac86096e39c616c4c0383cb0b6d27e2092
Remove inappropriate memory context switch in shutdown_MultiFuncCall().
This was a thinko introduced in a patch from last February; it results
in memory leakage if an SRF is shut down before the actual end of query,
because subsequent code will be running in a longer-lived context than
it's expecting to be.
src/backend/utils/fmgr/funcapi.c