OSDN Git Service

Create a GUC parameter max_files_per_process that is a configurable
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Sep 2001 18:57:45 +0000 (18:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 30 Sep 2001 18:57:45 +0000 (18:57 +0000)
commitf9f258281e0b3ccae1ca3e349f527e4b64c898ba
tree24b7fc305bbddfbc76d82b9d4acea5e7795e9f60
parent40ed132ce7a006ec8c54d5c97738563c1d7d05f3
Create a GUC parameter max_files_per_process that is a configurable
upper limit on what we will believe from sysconf(_SC_OPEN_MAX).  The
default value is 1000, so that under ordinary conditions it won't
affect the behavior.  But on platforms where the kernel promises far
more than it can deliver, this can be used to prevent running out of
file descriptors.  See numerous past discussions, eg, pgsql-hackers
around 23-Dec-2000.
doc/src/sgml/runtime.sgml
src/backend/storage/file/fd.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/storage/fd.h