aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-12-03 11:04:13 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-12-03 11:04:13 +0000
commit72f5c58e849acbe3de6e9d1f2366bd5692314892 (patch)
treec28669bd1c34b5d73588c8cd63f500f480ef53f2 /src/tutorial/basics.source
parent6bd8a543f75848b2eab06226edfc1479782dbdc9 (diff)
downloadpostgresql-72f5c58e849acbe3de6e9d1f2366bd5692314892.tar.gz
postgresql-72f5c58e849acbe3de6e9d1f2366bd5692314892.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/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions