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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached
Date: 2010-01-18 02:30:38
Message-ID: 20100118023038.30B587541B9@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_3_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/mmgr:
portalmem.c (r1.106.2.2 -> r1.106.2.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mmgr/portalmem.c?r1=1.106.2.2&r2=1.106.2.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Tatsuo Ishii 2010-01-18 03:44:18 Re: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached
Previous Message Tom Lane 2010-01-18 02:30:31 pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached