Do a direct probe during postmaster startup to determine the maximum
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |