Thread: pgsql/src/include/storage (fd.h)

pgsql/src/include/storage (fd.h)

From
Tom Lane
Date:
  Date: Thursday, June  1, 2000 @ 23:58:32
Author: tgl

Update of /home/projects/pgsql/cvsroot/pgsql/src/include/storage
     from hub.org:/home/projects/pgsql/tmp/cvs-serv15796/include/storage

Modified Files:
    fd.h

-----------------------------  Log Message  -----------------------------

Create an fd.c entry point that is just like plain open(2) except that
it will close VFDs if necessary to surmount ENFILE or EMFILE failures.
Make use of this in md.c, xlog.c, and user.c routines that were
formerly vulnerable to these failures.  In particular, this should
handle failures of mdblindwrt() that have been observed under heavy
load conditions.  (By golly, every other process on the system may
crash after Postgres eats up all the kernel FDs, but Postgres will
keep going!)