OSDN Git Service

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:25 +0000 (02:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jan 2010 02:30:25 +0000 (02:30 +0000)
commit376c6203cccd6251ffa83c98ce75f2a06cd95043
treefa40fecef1deed368fd94d187172427f0aa5e7bf
parent04ef4040186ac08b78ef0c88b78df3b0af4d6346
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