Re: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached - Mailing list pgsql-committers

From Tatsuo Ishii
Subject Re: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached
Date
Msg-id 20100118.124418.62367192.t-ishii@sraoss.co.jp
Whole thread Raw
In response to pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached  (tgl@postgresql.org (Tom Lane))
Responses Re: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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.
>
> 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)

Thanks. I confirmed the problem goes away. BTW, are we going to back
patch to 8.2 or before?
--
Tatsuo Ishii
SRA OSS, Inc. Japan

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Fix portalmem.c to avoid keeping a dangling pointer to a cached