diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-14 20:00:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-14 20:00:23 +0000 |
commit | de98a7e23a193a9c9a6505540ad03c5b4a57f345 (patch) | |
tree | ef7cc573f950bc10272d52c53f83aa19730f8328 /src/backend/utils/init/postinit.c | |
parent | 8460000069a14c44fef3177815c1bf2ad21c2fc9 (diff) | |
download | postgresql-de98a7e23a193a9c9a6505540ad03c5b4a57f345.tar.gz postgresql-de98a7e23a193a9c9a6505540ad03c5b4a57f345.zip |
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.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 48194071e59..3cd3f579294 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -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); } } |