Revert "Use "transient" files for blind writes, take 2".
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/bufmgr.c | modified | +2 −8 |
| src/backend/storage/file/fd.c | modified | +26 −65 |
| src/backend/storage/smgr/md.c | modified | +0 −9 |
| src/backend/storage/smgr/smgr.c | modified | +0 −17 |
| src/include/storage/fd.h | modified | +0 −1 |
| src/include/storage/smgr.h | modified | +0 −2 |