1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

The default values for shared_buffers and max_connections are now 1000

and 100 respectively, if the platform will allow it.  initdb selects
values that are not too large to allow the postmaster to start, and
places these values in the installed postgresql.conf file.  This allows
us to continue to start up out-of-the-box on platforms with small SHMMAX,
while having somewhat-realistic default settings on platforms with
reasonable SHMMAX.  Per recent pghackers discussion.
This commit is contained in:
Tom Lane
2003-07-14 20:00:23 +00:00
parent 8460000069
commit de98a7e23a
5 changed files with 97 additions and 88 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.122 2003/06/27 14:45:30 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.123 2003/07/14 20:00:22 tgl Exp $
*
*
*-------------------------------------------------------------------------
@ -176,12 +176,8 @@ InitCommunication(void)
{
/*
* We're running a postgres bootstrap process or a standalone backend.
* Create private "shmem" and semaphores. Force MaxBackends to 1 so
* that we don't allocate more resources than necessary.
* Create private "shmem" and semaphores.
*/
SetConfigOption("max_connections", "1",
PGC_POSTMASTER, PGC_S_OVERRIDE);
CreateSharedMemoryAndSemaphores(true, MaxBackends, 0);
}
}