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)
commitd2a7bb5a24fb606e3493a46ad0da5c115015b80e
treefa46e00aba8aff75ae72cd1b08f8fd71522098d5
parentc7e4ada2c8c0f99f031309ab4df684e3be922096
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