Skip to content

Commit 9edd720

Browse files
committed
Clearify how processes are started by autovacuum, and what the effect
of autovacuum_max_workers parameter is. Per discussion with Alvaro.
1 parent 4e0b63b commit 9edd720

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

doc/src/sgml/maintenance.sgml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.86 2008/06/16 03:13:14 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.87 2008/12/08 20:30:58 mha Exp $ -->
22

33
<chapter id="maintenance">
44
<title>Routine Database Maintenance Tasks</title>
@@ -522,10 +522,16 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
522522
The <quote>autovacuum daemon</> actually consists of multiple processes.
523523
There is a persistent daemon process, called the
524524
<firstterm>autovacuum launcher</firstterm>, which is in charge of starting
525-
an <firstterm>autovacuum worker</firstterm> process on each database every
526-
<xref linkend="guc-autovacuum-naptime"> seconds. On each run, the worker
527-
process checks each table within that database, and executes
528-
<command>VACUUM</> and/or <command>ANALYZE</> commands as needed.
525+
<firstterm>autovacuum worker</firstterm> processes for all databases. The
526+
launcher will distribute the work across time, but attempt to start one
527+
worker on each database every <xref linkend="guc-autovacuum-naptime">
528+
seconds. One worker will be launched for each database, with a maximum
529+
of <xref linkend="guc-autovacuum-max-workers"> processes running at the
530+
same time. If there are more than
531+
<xref linkend="guc-autovacuum-max-workers"> databases to be processed,
532+
the next database will be processed as soon as the first worker finishes.
533+
The worker processes will check each table within its database and
534+
execute <command>VACUUM</> and/or <command>ANALYZE</> as needed.
529535
</para>
530536

531537
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy