Skip to content

Commit 27f953e

Browse files
committed
Remove outdated recommendation for manual VACUUM
We have had a working and tunable autovacuum for at least a decade now, so remove the recommendation to manually vacuum tables at least every night. Autovacuum is now also triggered by INSERTs, so we can also remove the recommendation to run VACUUM (ANALYZE) after lots of INSERTs or DELETEs. Instead, suggest using autovacuum by moving the respective paragraph up to where the importance of VACUUM is emphasized. Author: Laurenz Albe <laurenz.albe@cybertec.at> Reviewed-By: Magnus Hagander, Peter Geoghegan Discussion: https://postgr.es/m/6f5e3da98fec14640f389d7b84c3b413833697f4.camel@cybertec.at
1 parent d28e26b commit 27f953e

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

doc/src/sgml/ref/vacuum.sgml

+5-15
Original file line numberDiff line numberDiff line change
@@ -377,15 +377,11 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] [ ANALYZE ] [ <replaceable class="paramet
377377
</para>
378378

379379
<para>
380-
We recommend that active production databases be
381-
vacuumed frequently (at least nightly), in order to
382-
remove dead rows. After adding or deleting a large number
383-
of rows, it might be a good idea to issue a <command>VACUUM
384-
ANALYZE</command> command for the affected table. This will update the
385-
system catalogs with
386-
the results of all recent changes, and allow the
387-
<productname>PostgreSQL</productname> query planner to make better
388-
choices in planning queries.
380+
We recommend that all databases be vacuumed regularly in
381+
order to remove dead rows. <productname>PostgreSQL</productname> includes
382+
an <quote>autovacuum</quote> facility which can automate routine vacuum
383+
maintenance. For more information about automatic and manual vacuuming,
384+
see <xref linkend="routine-vacuuming"/>.
389385
</para>
390386

391387
<para>
@@ -412,12 +408,6 @@ VACUUM [ FULL ] [ FREEZE ] [ VERBOSE ] [ ANALYZE ] [ <replaceable class="paramet
412408
details.
413409
</para>
414410

415-
<para>
416-
<productname>PostgreSQL</productname> includes an <quote>autovacuum</quote>
417-
facility which can automate routine vacuum maintenance. For more
418-
information about automatic and manual vacuuming, see
419-
<xref linkend="routine-vacuuming"/>.
420-
</para>
421411
<para>
422412
Each backend running <command>VACUUM</command> without the
423413
<literal>FULL</literal> option will report its progress in the

0 commit comments

Comments
 (0)