aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-12-03 11:03:55 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-12-03 11:03:55 +0000
commit852ac522f7377908f135053d569769698c268f32 (patch)
tree3ceda27d84fb658370f7034d3a1f3d86c69d9608 /src/backend/access/gist
parent2e7e4ab945109af9169cd3abb068f6b58a190d9e (diff)
downloadpostgresql-852ac522f7377908f135053d569769698c268f32.tar.gz
postgresql-852ac522f7377908f135053d569769698c268f32.zip
Fix bug in temporary file management with subtransactions. A cursor opened
in a subtransaction stays open even if the subtransaction is aborted, so any temporary files related to it must stay alive as well. With the patch, we use ResourceOwners to track open temporary files and don't automatically close them at subtransaction end (though in the normal case temporary files are registered with the subtransaction resource owner and will therefore be closed). At end of top transaction, we still check that there's no temporary files marked as close-at-end-of-transaction open, but that's now just a debugging cross-check as the resource owner cleanup should've closed them already.
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions