aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/guc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-02-23 20:45:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-02-23 20:45:59 +0000
commitf83356c7f574bc69969f29dc7b430b286a0cd9f4 (patch)
tree203be32611de0c869819c16e50f9e9d28027edb5 /src/backend/utils/misc/guc.c
parentb4c8dcb294d8138bb66891d62e4f43196da01d52 (diff)
downloadpostgresql-f83356c7f574bc69969f29dc7b430b286a0cd9f4.tar.gz
postgresql-f83356c7f574bc69969f29dc7b430b286a0cd9f4.zip
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.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r--src/backend/utils/misc/guc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 1dbf330ef69..85931e3ca83 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.187 2004/02/17 03:54:57 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.188 2004/02/23 20:45:59 tgl Exp $
*
*--------------------------------------------------------------------
*/
@@ -1102,7 +1102,7 @@ static struct config_int ConfigureNamesInt[] =
},
{
- {"max_files_per_process", PGC_BACKEND, RESOURCES_KERNEL,
+ {"max_files_per_process", PGC_POSTMASTER, RESOURCES_KERNEL,
gettext_noop("Sets the maximum number of simultaneously open files for each server process."),
NULL
},