|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.47 2005/09/16 03:12:32 alvherre Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.48 2005/09/23 02:01:34 momjian Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="maintenance">
|
@@ -180,7 +180,8 @@ $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.47 2005/09/16 03:12:32 alvh
|
180 | 180 | rate of data modification <command>VACUUM</command> busy tables as
|
181 | 181 | often as once every few minutes.) If you have multiple databases
|
182 | 182 | in a cluster, don't forget to <command>VACUUM</command> each one;
|
183 |
| - the program <filename>vacuumdb</> may be helpful. |
| 183 | + the program <xref linkend="app-vacuumdb" endterm="app-vacuumdb-title"> |
| 184 | + may be helpful. |
184 | 185 | </para>
|
185 | 186 |
|
186 | 187 | <para>
|
@@ -466,7 +467,7 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
|
466 | 467 | <para>
|
467 | 468 | Beginning in <productname>PostgreSQL </productname> 8.1, there is a
|
468 | 469 | separate optional server process called the <firstterm>autovacuum
|
469 |
| - daemon</firstterm>, whose purpose is to automate theissuance of |
| 470 | + daemon</firstterm>, whose purpose is to automate theexecution of |
470 | 471 | <command>VACUUM</command> and <command>ANALYZE </command> commands.
|
471 | 472 | When enabled, the autovacuum daemon runs periodically and checks for
|
472 | 473 | tables that have had a large number of inserted, updated or deleted
|
@@ -521,29 +522,29 @@ vacuum threshold = vacuum base threshold + vacuum scale factor * number of tuple
|
521 | 522 |
|
522 | 523 | <para>
|
523 | 524 | Note that if any of the values in <structname>pg_autovacuum</structname>
|
524 |
| -is set to a negative number, or if a tuple is not present at all in |
| 525 | +are set to a negative number, or if a tuple is not present at all in |
525 | 526 | <structname>pg_autovacuum</structname> for any particular table, the
|
526 | 527 | equivalent value from <filename>postgresql.conf</filename> is used.
|
527 | 528 | </para>
|
528 | 529 |
|
529 | 530 | <para>
|
530 | 531 | Besides the base threshold values and scale factors, there are three
|
531 |
| - parameters that can be set for each table in <structname>pg_autovacuum</structname>: |
532 |
| - the vacuum cost delay |
| 532 | + parameters that can be set for each table in <structname>pg_autovacuum</structname>. |
| 533 | + The first parameter, <structname>pg_autovacuum</>.<structfield>enabled</>, |
| 534 | + can be used to instruct the autovacuum daemon to skip any particular table |
| 535 | + by setting it to <literal>false</literal>. |
| 536 | + The other two, the vacuum cost delay |
533 | 537 | (<structname>pg_autovacuum</structname>.<structfield>vac_cost_delay</structfield>)
|
534 | 538 | and the vacuum cost limit
|
535 |
| - (<structname>pg_autovacuum</structname>.<structfield>vac_cost_limit</structfield>). |
536 |
| -Theyare used to set table-specific values for the |
| 539 | + (<structname>pg_autovacuum</structname>.<structfield>vac_cost_limit</structfield>), |
| 540 | + are used to set table-specific values for the |
537 | 541 | <xref linkend="runtime-config-resource-vacuum-cost" endterm="runtime-config-resource-vacuum-cost-title">
|
538 | 542 | feature. The above note about negative values also applies here, but
|
539 | 543 | also note that if the <filename>postgresql.conf</filename> variables
|
540 | 544 | <varname>autovacuum_vacuum_cost_limit</varname> and
|
541 | 545 | <varname>autovacuum_vacuum_cost_delay</varname> are also set to negative
|
542 |
| - values, the <varname>vacuum_cost_limit</varname> and |
| 546 | + values, theglobal<varname>vacuum_cost_limit</varname> and |
543 | 547 | <varname>vacuum_cost_delay</varname> values will be used instead.
|
544 |
| - The other parameter, <structname>pg_autovacuum</>.<structfield>enabled</>, |
545 |
| - can be used to instruct the autovacuum daemon to skip any particular table |
546 |
| - by setting it to <literal>false</literal>. |
547 | 548 | </para>
|
548 | 549 |
|
549 | 550 | <note>
|
|