Update documentation to mention that autovacuum also does analyze so we
authorBruce Momjian <bruce@momjian.us>
Fri, 14 Sep 2007 13:43:03 +0000 (13:43 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 14 Sep 2007 13:43:03 +0000 (13:43 +0000)
don't need to recommend nightly analyzes anymore unless autovacuum is off.

doc/src/sgml/maintenance.sgml

index d1e3a227a31e5ec2ccb34d3fb68029a218610970..be6c58e6baf0c1262a04043eef6a108d4f10bf15 100644 (file)
    </tip>
 
    <para>
-    Recommended practice for most sites is to schedule a database-wide
-    <command>ANALYZE</> once a day at a low-usage time of day; this can
-    usefully be combined with a nightly <command>VACUUM</>.  However,
-    sites with relatively slowly changing table statistics might find that
-    this is overkill, and that less-frequent <command>ANALYZE</> runs
-    are sufficient.
+    Fortunately, autovacuum (<xref linkend="autovacuum">) monitors table
+    activity and performs <command>ANALYZE</command>s when necessary.  This
+    eliminates the need for administrators to manually schedule
+    <command>ANALYZE</command>.
+   </para>
+
+   <para>
+    For those not using autovacuum, one approach is to schedule a
+    database-wide <command>ANALYZE</> once a day at a low-usage time of
+    day; this can usefully be combined with a nightly <command>VACUUM</>.
+    However, sites with relatively slowly changing table statistics might
+    find that this is overkill, and that less-frequent <command>ANALYZE</>
+    runs are sufficient.
    </para>
   </sect2>