Commit 7d732f06 authored by Tom Lane's avatar Tom Lane

Wups, fat-fingered the calculation the first time. Update comment in

postgresql.conf.sample too.
parent b1bff7e6
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.358 2005/12/23 23:02:26 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.359 2005/12/23 23:28:35 tgl Exp $
--> -->
<chapter Id="runtime"> <chapter Id="runtime">
...@@ -1031,12 +1031,12 @@ set semsys:seminfo_semmsl=32 ...@@ -1031,12 +1031,12 @@ set semsys:seminfo_semmsl=32
<tbody> <tbody>
<row> <row>
<entry><xref linkend="guc-max-connections"></> <entry><xref linkend="guc-max-connections"></>
<entry>400 + 400 * <xref linkend="guc-max-locks-per-transaction"></entry> <entry>400 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry>
</row> </row>
<row> <row>
<entry><xref linkend="guc-max-prepared-transactions"></> <entry><xref linkend="guc-max-prepared-transactions"></>
<entry>600 + 400 * <xref linkend="guc-max-locks-per-transaction"></entry> <entry>600 + 270 * <xref linkend="guc-max-locks-per-transaction"></entry>
</row> </row>
<row> <row>
......
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
#deadlock_timeout = 1000 # in milliseconds #deadlock_timeout = 1000 # in milliseconds
#max_locks_per_transaction = 64 # min 10 #max_locks_per_transaction = 64 # min 10
# note: each lock table slot uses ~220 bytes of shared memory, and there are # note: each lock table slot uses ~270 bytes of shared memory, and there are
# max_locks_per_transaction * (max_connections + max_prepared_transactions) # max_locks_per_transaction * (max_connections + max_prepared_transactions)
# lock table slots. # lock table slots.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment