Thread: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached

pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/mmgr:
        portalmem.c (r1.113.2.1 -> r1.113.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mmgr/portalmem.c?r1=1.113.2.1&r2=1.113.2.2)