From f83356c7f574bc69969f29dc7b430b286a0cd9f4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 23 Feb 2004 20:45:59 +0000 Subject: 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. --- src/backend/utils/misc/guc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/misc/guc.c') 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 . * * 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 }, -- cgit v1.2.3