]> 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:37 +0000 (02:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jan 2010 02:30:37 +0000 (02:30 +0000)
commit317be817f4287168a8722377bcd4e26cef817c28
tree8b46105e724870793bbc2978aac9900f6bb2727a
parent8a6a40dea66ee86b3e5d41f4ad572964c5510005
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