Add 'temporary file' facility to fd.c, and arrange for temp
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 May 1999 00:52:08 +0000 (00:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 9 May 1999 00:52:08 +0000 (00:52 +0000)
commitc1167a08cacb86c0e6c22e3db81233143ceba5b8
treeccf27d533b8847d133ba1cbd8ffaac5a47cf0ab5
parentb0f1880a8eb740d9895faddc28b6b9362df9fcba
Add 'temporary file' facility to fd.c, and arrange for temp
files to be closed automatically at transaction abort or commit, should
they still be open.  Also close any still-open stdio files allocated with
AllocateFile at abort/commit.  This should eliminate problems with leakage
of file descriptors after an error.  Also, put in some primitive buffered-IO
support so that psort.c can use virtual files without severe performance
penalties.
src/backend/access/transam/xact.c
src/backend/storage/file/fd.c
src/include/storage/fd.h