Oops, in the previous fix to prevent a cursor that's being used in a FOR
authorHeikki Linnakangas <[email protected]>
Tue, 13 Jul 2010 09:02:46 +0000 (09:02 +0000)
committerHeikki Linnakangas <[email protected]>
Tue, 13 Jul 2010 09:02:46 +0000 (09:02 +0000)
commit20b63e97b6482ac5769a35d821b3f516f0087e87
tree6dbbaba7bac2fc6ff2925a0d78bd29f3f527d2a8
parent8c21b4e9226df1f6f16091e557fb313f5d308cde
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.
src/backend/utils/mmgr/portalmem.c