]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix portalmem.c to avoid keeping a dangling pointer to a cached plan list
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jan 2010 02:30:30 +0000 (02:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jan 2010 02:30:30 +0000 (02:30 +0000)
commit524d357d09cd42a1e88636f2bc6a66bc402ca0a1
treefd2f462bdc7155cc6e132efc7fc6b58c022f7870
parent69273fb01880f151931f8349dae038e266bfe57d
Fix portalmem.c to avoid keeping a dangling pointer to a cached plan list
after it's released its reference count for the cached plan.  There are
code paths that might try to examine the plan list before noticing that
the portal is already in aborted state.  Report and diagnosis by Tatsuo
Ishii, though this isn't exactly his proposed patch.
src/backend/utils/mmgr/portalmem.c