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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b9ded24614b3209e909014744a553f7b334331f2
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2010-07-13T09:03:01Z
Releases: 8.1.22
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