From: | tgl(at)svr1(dot)postgresql(dot)org (Tom Lane) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql-server/ ontrib/dbsize/dbsize.c rc/backen ... |
Date: | 2004-02-23 23:03:10 |
Message-ID: | 20040223230310.BAC5AD1B9A9@svr1.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)svr1(dot)postgresql(dot)org 04/02/23 19:03:10
Modified files:
contrib/dbsize : dbsize.c
src/backend/access/transam: slru.c xlog.c
src/backend/storage/file: fd.c
src/include/storage: fd.h
src/port : copydir.c
Log message:
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-02-23 23:03:43 | pgsql-server/ ontrib/dbsize/Tag: ontrib/dbsize ... |
Previous Message | Tom Lane | 2004-02-23 20:48:03 | pgsql-server/src/include/port win32.h |