Skip to content

Commit 44ca43e

Browse files
committed
Doc: Fix misleading statement about VACUUM memory limits
In ec34040 I added a mention that there was no point in setting maintenance_work_limit to anything higher than 1GB for vacuum, but that was incorrect as ginInsertCleanup() also looks at what maintenance_work_mem is set to during VACUUM and that's not limited to 1GB. Here I attempt to make it more clear that the limitation is only around the number of dead tuple identifiers that we can collect during VACUUM. I've also added a note to autovacuum_work_mem to mention this limitation. I didn't do that in ec34040 as I'd had some wrong-headed ideas about just limiting the maximum value for that GUC to 1GB. Author: David Rowley Discussion: https://postgr.es/m/CAApHDvpGwOAvunp-E-bN_rbAs3hmxMoasm5pzkYDbf36h73s7w@mail.gmail.com Backpatch-through: 9.6, same as ec34040
1 parent c3c1fe0 commit 44ca43e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

doc/src/sgml/config.sgml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,10 +1490,9 @@ include_dir 'conf.d'
14901490
setting <xref linkend="guc-autovacuum-work-mem">.
14911491
</para>
14921492
<para>
1493-
Additionally, <command>VACUUM</command> is only able to utilize up to
1494-
a maximum of <literal>1GB</literal> of memory, so
1495-
<varname>maintenance_work_mem</varname> values higher than this have
1496-
no effect on <command>VACUUM</command>.
1493+
Note that for the collection of dead tuple identifiers,
1494+
<command>VACUUM</command> is only able to utilize up to a maximum of
1495+
<literal>1GB</literal> of memory.
14971496
</para>
14981497
</listitem>
14991498
</varlistentry>
@@ -1554,6 +1553,13 @@ include_dir 'conf.d'
15541553
<filename>postgresql.conf</filename> file or on the server command
15551554
line.
15561555
</para>
1556+
<para>
1557+
For the collection of dead tuple identifiers, autovacuum is only able
1558+
to utilize up to a maximum of <literal>1GB</literal> of memory, so
1559+
setting <varname>autovacuum_work_mem</varname> to a value higher than
1560+
that has no effect on the number of dead tuples that autovacuum can
1561+
collect while scanning a table.
1562+
</para>
15571563
</listitem>
15581564
</varlistentry>
15591565

0 commit comments

Comments
 (0)