]> granicus.if.org Git - postgresql/commit
Revert "Use "transient" files for blind writes, take 2".
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Oct 2012 16:37:08 +0000 (12:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Oct 2012 16:37:08 +0000 (12:37 -0400)
commit9bacf0e3734f0b5dc821abf7cb312377876e22d3
treee34fe9fad0f0169783db4af3800614b8d67e402f
parenta66ee69add6e129c7674a59f8c3ba010ed4c9386
Revert "Use "transient" files for blind writes, take 2".

This reverts commit fba105b1099f4f5fa7283bb17cba6fed2baa8d0c.
That approach had problems with the smgr-level state not tracking what
we really want to happen, and with the VFD-level state not tracking the
smgr-level state very well either.  In consequence, it was still possible
to hold kernel file descriptors open for long-gone tables (as in recent
report from Tore Halset), and yet there were also cases of FDs being closed
undesirably soon.  A replacement implementation will follow.
src/backend/storage/buffer/bufmgr.c
src/backend/storage/file/fd.c
src/backend/storage/smgr/md.c
src/backend/storage/smgr/smgr.c
src/include/storage/fd.h
src/include/storage/smgr.h