diff options
| author | Tom Lane | 2012-10-17 16:37:08 +0000 |
|---|---|---|
| committer | Tom Lane | 2012-10-17 16:37:08 +0000 |
| commit | 9bacf0e3734f0b5dc821abf7cb312377876e22d3 (patch) | |
| tree | e34fe9fad0f0169783db4af3800614b8d67e402f /src/include | |
| parent | a66ee69add6e129c7674a59f8c3ba010ed4c9386 (diff) | |
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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/fd.h | 1 | ||||
| -rw-r--r-- | src/include/storage/smgr.h | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/include/storage/fd.h b/src/include/storage/fd.h index bad9f10c62e..849bb1025d9 100644 --- a/src/include/storage/fd.h +++ b/src/include/storage/fd.h @@ -66,7 +66,6 @@ extern int max_safe_fds; /* Operations on virtual Files --- equivalent to Unix kernel file ops */ extern File PathNameOpenFile(FileName fileName, int fileFlags, int fileMode); extern File OpenTemporaryFile(bool interXact); -extern void FileSetTransient(File file); extern void FileClose(File file); extern int FilePrefetch(File file, off_t offset, int amount); extern int FileRead(File file, char *buffer, int amount); diff --git a/src/include/storage/smgr.h b/src/include/storage/smgr.h index 3560d539076..92b9198d542 100644 --- a/src/include/storage/smgr.h +++ b/src/include/storage/smgr.h @@ -60,7 +60,6 @@ typedef struct SMgrRelationData * submodules. Do not touch them from elsewhere. */ int smgr_which; /* storage manager selector */ - bool smgr_transient; /* T if files are to be closed at EOXact */ /* for md.c; NULL for forks that are not open */ struct _MdfdVec *md_fd[MAX_FORKNUM + 1]; @@ -73,7 +72,6 @@ typedef SMgrRelationData *SMgrRelation; extern void smgrinit(void); extern SMgrRelation smgropen(RelFileNode rnode, BackendId backend); -extern void smgrsettransient(SMgrRelation reln); extern bool smgrexists(SMgrRelation reln, ForkNumber forknum); extern void smgrsetowner(SMgrRelation *owner, SMgrRelation reln); extern void smgrclose(SMgrRelation reln); |
