Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9edd720

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 parent4e0b63b commit9edd720

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)

[8]ページ先頭

©2009-2025 Movatter.jp