]> granicus.if.org Git - postgresql/commit
Remove inappropriate memory context switch in shutdown_MultiFuncCall().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2008 18:49:48 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Nov 2008 18:49:48 +0000 (18:49 +0000)
commit25a4f1afec301b8358cde28099b68bf43f18d5b4
treeb4f5ee599b81d02441f022d16c356710678e5ed5
parent66156f24321d15eb5d1a7a24505493214dd7f90f
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