Reword paragraph about the autovacuum_max_workers setting. Patch from

Jim Nasby.
This commit is contained in:
Alvaro Herrera 2007-07-23 17:22:00 +00:00
parent b9ab88243e
commit aa81c558ee

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.76 2007/07/18 03:39:01 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.77 2007/07/23 17:22:00 alvherre Exp $ -->
<chapter id="maintenance"> <chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title> <title>Routine Database Maintenance Tasks</title>
@ -496,16 +496,16 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
</para> </para>
<para> <para>
There is a limit of <xref linkend="guc-autovacuum-max-workers"> worker The <xref linkend="guc-autovacuum-max-workers"> setting limits how many
processes that may be running at any time, so if the <command>VACUUM</> workers may be running at any time. If several large tables all become
and <command>ANALYZE</> work to do takes too long to run, the deadline may eligible for vacuuming in a short amount of time, all autovacuum workers
be failed to meet for other databases. Also, if a particular database may end up vacuuming those tables for a very long time. This would result
takes a long time to process, more than one worker may be processing it in other tables and databases not being vacuumed until a worker became
simultaneously. The workers are smart enough to avoid repeating work that available. There is also not a limit on how many workers might be in a
other workers have done, so this is normally not a problem. Note that the single database, but workers do try and avoid repeating work that has
number of running workers does not count towards the <xref already been done by other workers. Note that the number of running
linkend="guc-max-connections"> nor the <xref workers does not count towards the <xref linkend="guc-max-connections"> nor
linkend="guc-superuser-reserved-connections"> limits. the <xref linkend="guc-superuser-reserved-connections"> limits.
</para> </para>
<para> <para>