]> 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:20 +0000 (12:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Oct 2012 16:37:20 +0000 (12:37 -0400)
commitcacb65263b99c3d96aa4b250cdbda05072ade03e
tree3798ceac7152c52b9d0be881c7eaa65a0642256e
parentf34d1fa0c8bd587a165234e0971bba8dc5e1fd2a
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