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