Skip to content

Commit 5c7522d

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 be50010 commit 5c7522d

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
@@ -1733,10 +1733,9 @@ include_dir 'conf.d'
17331733
setting <xref linkend="guc-autovacuum-work-mem"/>.
17341734
</para>
17351735
<para>
1736-
Additionally, <command>VACUUM</command> is only able to utilize up to
1737-
a maximum of <literal>1GB</literal> of memory, so
1738-
<varname>maintenance_work_mem</varname> values higher than this have
1739-
no effect on <command>VACUUM</command>.
1736+
Note that for the collection of dead tuple identifiers,
1737+
<command>VACUUM</command> is only able to utilize up to a maximum of
1738+
<literal>1GB</literal> of memory.
17401739
</para>
17411740
</listitem>
17421741
</varlistentry>
@@ -1760,6 +1759,13 @@ include_dir 'conf.d'
17601759
<filename>postgresql.conf</filename> file or on the server command
17611760
line.
17621761
</para>
1762+
<para>
1763+
For the collection of dead tuple identifiers, autovacuum is only able
1764+
to utilize up to a maximum of <literal>1GB</literal> of memory, so
1765+
setting <varname>autovacuum_work_mem</varname> to a value higher than
1766+
that has no effect on the number of dead tuples that autovacuum can
1767+
collect while scanning a table.
1768+
</para>
17631769
</listitem>
17641770
</varlistentry>
17651771

0 commit comments

Comments
 (0)