Do a direct probe during postmaster startup to determine the maximum

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f83356c7f574bc69969f29dc7b430b286a0cd9f4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-02-23T20:45:59Z
Releases: 8.0.0
Do a direct probe during postmaster startup to determine the maximum
number of openable files and the number already opened.  This eliminates
depending on sysconf(_SC_OPEN_MAX), and allows much saner behavior on
platforms where open-file slots are used up by semaphores.

Files

PathChange+/−
doc/src/sgml/runtime.sgml modified +9 −14
src/backend/postmaster/postmaster.c modified +8 −5
src/backend/storage/file/fd.c modified +144 −87
src/backend/utils/misc/guc.c modified +2 −2
src/include/storage/fd.h modified +2 −1