Skip site navigation (1) Skip section navigation (2)

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:25
Message-ID: 20100118023025.EE5067541B9@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
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.

Modified Files:
--------------
    pgsql/src/backend/utils/mmgr:
        portalmem.c (r1.115 -> r1.116)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mmgr/portalmem.c?r1=1.115&r2=1.116)

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2010-01-18 02:44:07
Subject: Re: Bloom index
Previous:From: Greg StarkDate: 2010-01-18 02:29:03
Subject: Re: Bloom index

pgsql-committers by date

Next:From: Tom LaneDate: 2010-01-18 02:30:31
Subject: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached
Previous:From: User FxjrDate: 2010-01-18 02:14:28
Subject: npgsql - Npgsql2: Changed NpgsqlInet test method name to better explain

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group