diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-02-23 23:03:43 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-02-23 23:03:43 +0000 |
commit | 6b534f3c3394f86ec79cd764a0413e56af26773a (patch) | |
tree | 5a2d17ab8d1f82dc968c09c1091ff7eda18c2b93 /src/backend/executor/execMain.c | |
parent | 95a6dbf12b2aa7261cd6f13f41cc8de8a693ee75 (diff) | |
download | postgresql-6b534f3c3394f86ec79cd764a0413e56af26773a.tar.gz postgresql-6b534f3c3394f86ec79cd764a0413e56af26773a.zip |
Replace opendir/closedir calls throughout the backend with AllocateDir
and FreeDir routines modeled on the existing AllocateFile/FreeFile.
Like the latter, these routines will avoid failing on EMFILE/ENFILE
conditions whenever possible, and will prevent leakage of directory
descriptors if an elog() occurs while one is open.
Also, reduce PANIC to ERROR in MoveOfflineLogs() --- this is not
critical code and there is no reason to force a DB restart on failure.
All per recent trouble report from Olivier Hubaut.
Diffstat (limited to 'src/backend/executor/execMain.c')
0 files changed, 0 insertions, 0 deletions