Oops, in the previous fix to prevent a cursor that's being used in a FOR
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/mmgr/portalmem.c | modified | +12 −1 |