]> granicus.if.org Git - postgresql/commit
Oops, in the previous fix to prevent a cursor that's being used in a FOR
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 13 Jul 2010 09:02:30 +0000 (09:02 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 13 Jul 2010 09:02:30 +0000 (09:02 +0000)
commit2751a249cbb314990642c67cf1ad7d638eac5911
treeb33b43f124e4f3452a8aa28a3015647247dbddd1
parentf0fd939655b0294f03317f142cc885dc13d5cb26
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