Do a direct probe during postmaster startup to determine the maximum

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

Commit: 95a6dbf12b2aa7261cd6f13f41cc8de8a693ee75
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-02-23T20:46:16Z
Releases: 7.4.2
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 +7 −1
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