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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 20b63e97b6482ac5769a35d821b3f516f0087e87
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-07-13T09:02:46Z
Releases: 8.3.12
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.

Files

PathChange+/−
src/backend/utils/mmgr/portalmem.c modified +12 −1