A few improvements to analyze and vacuum sections in documentation: add "see
authorAlvaro Herrera
Sun, 7 Oct 2007 01:16:42 +0000 (01:16 +0000)
committerAlvaro Herrera
Sun, 7 Oct 2007 01:16:42 +0000 (01:16 +0000)
also" entries for autovacuum in analyze and vacuum reference pages, and
enhance usage of cross-references in the maintenance page.

doc/src/sgml/maintenance.sgml
doc/src/sgml/ref/analyze.sgml
doc/src/sgml/ref/vacuum.sgml

index a7b740af1a772eaa8d245a957f7ef83835d1d9b2..33b86818ca2433e2e5ff6e05121cf0db4eed450c 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  Routine Database Maintenance Tasks
@@ -59,9 +59,9 @@
   
 
   
-   PostgreSQL's VACUUM (
-   linkend="sql-vacuum">) command has to run on a regular basis for several
-   reasons:
+   PostgreSQL's
+    command has to run on
+   a regular basis for several reasons:
 
     
      
@@ -96,7 +96,8 @@
   
 
   
-   Fortunately, autovacuum () monitors table
+   Fortunately, 
+   monitors table
    activity and performs VACUUMs when necessary.
    Autovacuum works dynamically so it is often better
    administration-scheduled vacuuming.
    
 
    
-    Fortunately, autovacuum () monitors table
+    Fortunately, 
+    monitors table
     activity and performs VACUUMs when necessary.  This
     eliminates the need for administrators to worry about disk space
     recovery in all but the most unusual cases.
     The PostgreSQL query planner relies on
     statistical information about the contents of tables in order to
     generate good plans for queries.  These statistics are gathered by
-    the ANALYZE command, which can be invoked by itself or
+    the  command,
+    which can be invoked by itself or
     as an optional step in VACUUM.  It is important to have
     reasonably accurate statistics, otherwise poor choices of plans might
     degrade database performance.
    
 
    
-    Fortunately, autovacuum () monitors table
+    Fortunately, 
+    monitors table
     activity and performs ANALYZEs when necessary.  This
     eliminates the need for administrators to manually schedule
     ANALYZE.
     when it was last vacuumed.
     If it were to go unvacuumed for longer than that,
     data loss could result.  To ensure that this does not
-    happen, the autovacuum facility described in
-     is invoked on any table
+    happen, 
+    is invoked on any table
     that might contain XIDs older than the age specified by the
     configuration parameter
     .  (This will happen
index bb293af03cc766747ce95b187632a6a94a9ca941..f84999b03fe0a0ee9749430156ef0fad58475785 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -92,7 +92,12 @@ ANALYZE [ VERBOSE ] [ table [ ( 
   Notes
 
   
-   It is a good idea to run ANALYZE periodically, or
+   In the default PostgreSQL configuration,
+   
+   takes care of automatic analyzing of tables when they are first loaded
+   with data, and as they change throughout regular operation.
+   When autovacuum is disabled,
+   it is a good idea to run ANALYZE periodically, or
    just after making major changes in the contents of a table.  Accurate
    statistics will help the planner to choose the most appropriate query
    plan, and thereby improve the speed of query processing.  A common
@@ -101,7 +106,7 @@ ANALYZE [ VERBOSE ] [ table [ ( 
   
 
   
-   Unlike VACUUM FULLANALYZE
+   ANALYZE
    requires only a read lock on the target table, so it can run in
    parallel with other activity on the table.
   
@@ -168,4 +173,15 @@ ANALYZE [ VERBOSE ] [ table [ ( 
    There is no ANALYZE statement in the SQL standard.
   
  
+
+  See Also
+
+  
+   
+   
+   
+   
+  
 
index 60bd2ff73e70a7f22ef3bf88d4f3b81bbe4c72d4..013b75f09278744978a49cf23e15954ba2f0be59 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -242,6 +242,7 @@ VACUUM
   
    
    
+