File tree 4 files changed +9
-27
lines changed
4 files changed +9
-27
lines changed Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.167 2008/03/05 16:59:10 momjian Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.168 2008/03/09 04:56:28 tgl Exp $ -->
2
2
3
3
<chapter Id="runtime-config">
4
4
<title>Server Configuration</title>
@@ -736,8 +736,7 @@ SET ENABLE_SEQSCAN TO OFF;
736
736
memory buffers. The default is typically 32 megabytes
737
737
(<literal>32MB</>), but might be less if your kernel settings will
738
738
not support it (as determined during <application>initdb</>).
739
- This setting must be at least 128 kilobytes and at least 16
740
- kilobytes times <xref linkend="guc-max-connections">. (Non-default
739
+ This setting must be at least 128 kilobytes. (Non-default
741
740
values of <symbol>BLCKSZ</symbol> change the minimum.) However,
742
741
settings significantly higher than the minimum are usually needed
743
742
for good performance. Several tens of megabytes are recommended
Original file line number Diff line number Diff line change 37
37
*
38
38
*
39
39
* IDENTIFICATION
40
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.552 2008/02/20 22:46:24 tgl Exp $
40
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.553 2008/03/09 04:56:28 tgl Exp $
41
41
*
42
42
* NOTES
43
43
*
@@ -688,16 +688,6 @@ PostmasterMain(int argc, char *argv[])
688
688
/*
689
689
* Check for invalid combinations of GUC settings.
690
690
*/
691
- if (NBuffers < 2 * MaxBackends || NBuffers < 16 )
692
- {
693
- /*
694
- * Do not accept -B so small that backends are likely to starve for
695
- * lack of buffers. The specific choices here are somewhat arbitrary.
696
- */
697
- write_stderr ("%s: the number of buffers (-B) must be at least twice the number of allowed connections (-N) and at least 16\n" , progname );
698
- ExitPostmaster (1 );
699
- }
700
-
701
691
if (ReservedBackends >= MaxBackends )
702
692
{
703
693
write_stderr ("%s: superuser_reserved_connections must be less than max_connections\n" , progname );
Original file line number Diff line number Diff line change 10
10
* Written by Peter Eisentraut <peter_e@gmx.net>.
11
11
*
12
12
* IDENTIFICATION
13
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.433 2008/03/06 16:31:42 momjian Exp $
13
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.434 2008/03/09 04:56:28 tgl Exp $
14
14
*
15
15
*--------------------------------------------------------------------
16
16
*/
@@ -1195,16 +1195,10 @@ static struct config_int ConfigureNamesInt[] =
1195
1195
},
1196
1196
1197
1197
/*
1198
- * Note: There is some postprocessing done in PostmasterMain() to make
1199
- * sure the buffers are at least twice the number of backends, so the
1200
- * constraints here are partially unused. Similarly, the superuser
1201
- * reserved number is checked to ensure it is less than the max backends
1202
- * number.
1203
- *
1204
- * MaxBackends is limited to INT_MAX/4 because some places compute
1205
- * 4*MaxBackends without any overflow check. This check is made on
1198
+ * Note: MaxBackends is limited to INT_MAX/4 because some places compute
1199
+ * 4*MaxBackends without any overflow check. This check is made in
1206
1200
* assign_maxconnections, since MaxBackends is computed as MaxConnections
1207
- * + autovacuum_max_workers.
1201
+ * plus autovacuum_max_workers.
1208
1202
*
1209
1203
* Likewise we have to limit NBuffers to INT_MAX/2.
1210
1204
*/
Original file line number Diff line number Diff line change 60
60
#port = 5432 # (change requires restart)
61
61
#max_connections = 100 # (change requires restart)
62
62
# Note: Increasing max_connections costs ~400 bytes of shared memory per
63
- # connection slot, plus lock space (see max_locks_per_transaction). You might
64
- # also need to raise shared_buffers to support more connections.
63
+ # connection slot, plus lock space (see max_locks_per_transaction).
65
64
#superuser_reserved_connections = 3 # (change requires restart)
66
65
#unix_socket_directory = '' # (change requires restart)
67
66
#unix_socket_group = '' # (change requires restart)
104
103
105
104
# - Memory -
106
105
107
- #shared_buffers = 32MB # min 128kB or max_connections*16kB
106
+ #shared_buffers = 32MB # min 128kB
108
107
# (change requires restart)
109
108
#temp_buffers = 8MB # min 800kB
110
109
#max_prepared_transactions = 5 # can be 0 or more
You can’t perform that action at this time.
0 commit comments