Add note that autovacuum can use up several times maintenance_work_mem,
authorMagnus Hagander <magnus@hagander.net>
Mon, 8 Dec 2008 15:11:39 +0000 (15:11 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 8 Dec 2008 15:11:39 +0000 (15:11 +0000)
with warning against setting it too high.

doc/src/sgml/config.sgml

index f49ee28259c80e311f027fddbe17842ee86991fd..cf99ba2c85f505c0e845f3ea910b7a384020d8f9 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.198 2008/11/21 20:21:59 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.199 2008/12/08 15:11:39 mha Exp $ -->
 
 <chapter Id="runtime-config">
   <title>Server Configuration</title>
@@ -881,6 +881,11 @@ SET ENABLE_SEQSCAN TO OFF;
         than <varname>work_mem</varname>.  Larger settings might improve
         performance for vacuuming and for restoring database dumps.
        </para>
+       <para>
+        Note that when autovacuum runs, up to
+        <xref linkend="guc-autovacuum-max-workers"> times this memory may be
+        allocated, so be careful not to set the default value too high.
+       </para>
       </listitem>
      </varlistentry>