pgsql: Oops, in the previous fix to prevent a cursor that's being used

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Oops, in the previous fix to prevent a cursor that's being used
Date: 2010-07-13 09:02:30
Message-ID: 20100713090230.6990D7541D5@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Oops, in the previous fix to prevent a cursor that's being used in a FOR
loop from being dropped, I missed subtransaction cleanup. Pinned portals
must be dropped at subtransaction cleanup just as they are at main
transaction cleanup.

Per bug #5556 by Robert Walker. Backpatch to 8.0, 7.4 didn't have
subtransactions.

Modified Files:
--------------
pgsql/src/backend/utils/mmgr:
portalmem.c (r1.120 -> r1.121)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/mmgr/portalmem.c?r1=1.120&r2=1.121)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-07-13 09:02:35 pgsql: Oops, in the previous fix to prevent a cursor that's being used
Previous Message Bruce Momjian 2010-07-12 19:36:10 Re: pgsql: Make NestLoop plan nodes pass outer-relation variables into their