Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite67bb7a

Browse files
committed
Missed a few places that referred to a compile-time limit on
max_connections.
1 parent4d8ce9b commite67bb7a

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

‎doc/src/sgml/runtime.sgml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.75 2001/08/15 18:42:14 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.76 2001/09/07 00:46:41 tgl Exp $
33
-->
44

55
<Chapter Id="runtime">
@@ -1145,10 +1145,8 @@ dynamic_library_path = '/usr/local/lib:/home/my_project/lib:$libdir:$libdir/cont
11451145
<listitem>
11461146
<para>
11471147
Determines how many concurrent connections the database server
1148-
will allow. The default is 32. There is also a compiled-in
1149-
hard upper limit on this value, which is typically 1024
1150-
(both numbers can be altered when compiling the server). This
1151-
parameter can only be set at server start.
1148+
will allow. The default is 32 (unless altered while building
1149+
the server). This parameter can only be set at server start.
11521150
</para>
11531151
</listitem>
11541152
</varlistentry>
@@ -1760,7 +1758,7 @@ dynamic_library_path = '/usr/local/lib:/home/my_project/lib:$libdir:$libdir/cont
17601758
<productname>Postgres</> uses one semaphore per allowed connection
17611759
(<option>-N</> option), in sets of 16. Each such set will also
17621760
contain a 17th semaphore which contains a <quote>magic
1763-
number</quote>, toavoid collision with semaphore sets used by
1761+
number</quote>, todetect collision with semaphore sets used by
17641762
other applications. The maximum number of semaphores in the system
17651763
is set by <varname>SEMMNS</>, which consequently must be at least
17661764
as high as the connection setting plus one extra for each 16

‎src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.238 2001/09/07 00:27:29 tgl Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.239 2001/09/07 00:46:42 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -480,11 +480,7 @@ PostmasterMain(int argc, char *argv[])
480480
*/
481481
break;
482482
case'N':
483-
484-
/*
485-
* The max number of backends to start. Can't set to less
486-
* than 1 or more than compiled-in limit.
487-
*/
483+
/* The max number of backends to start. */
488484
SetConfigOption("max_connections",optarg,PGC_POSTMASTER, true);
489485
break;
490486
case'n':

‎src/backend/utils/misc/postgresql.conf.sample

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77
# name = value
88
#
99
# (The `=' is optional.) White space is collapsed, comments are
10-
# introduced by `#' anywhere on a line. The complete list of option
10+
# introduced by `#' anywhere on a line.The complete list of option
1111
# names and allowed values can be found in the PostgreSQL
12-
# documentation. Examples are:
13-
14-
#log_connections = on
15-
#fsync = off
16-
#max_connections = 64
12+
# documentation. The commented-out settings shown in this file
13+
# represent the default values.
1714

1815
# Any option can also be given as a command line switch to the
1916
# postmaster, e.g., 'postmaster -c log_connections=on'. Some options
20-
# can beset at run-time with the 'SET' SQL command.
17+
# can bechanged at run-time with the 'SET' SQL command.
2118

2219

2320
#========================================================================
@@ -29,7 +26,7 @@
2926
#tcpip_socket = false
3027
#ssl = false
3128

32-
#max_connections = 32 # 1-1024
29+
#max_connections = 32
3330

3431
#port = 5432
3532
#hostname_lookup = false

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp