Enable autovacuum in the default configuration, per discussion.
authorAlvaro Herrera
Tue, 16 Jan 2007 18:26:02 +0000 (18:26 +0000)
committerAlvaro Herrera
Tue, 16 Jan 2007 18:26:02 +0000 (18:26 +0000)
doc/src/sgml/config.sgml
doc/src/sgml/maintenance.sgml
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample

index de88650b0ed2fe317fdb9b77b2c1ade88ff6e3a2..ef8090274764f876d23df48703866e2978287e1e 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
   Server Configuration
@@ -3043,7 +3043,8 @@ SELECT * FROM parent WHERE key = 2400;
       
        
         Enables the collection of row-level statistics on database
-        activity. This parameter is off by default.
+        activity. This parameter is on by default, because the autovacuum
+        daemon needs the collected information.
         Only superusers can change this setting.
        
       
index 3603692ee2580ec1c41a114ba73d9b9d98381eaf..8da5c18c1a8ca9d7bd094d53b7af5661c03df78e 100644 (file)
@@ -1,4 +1,4 @@
-
+
 
 
  Routine Database Maintenance Tasks
@@ -477,7 +477,9 @@ HINT:  Stop the postmaster and use a standalone backend to VACUUM in "mydb".
     linkend="guc-stats-start-collector"> and 
     linkend="guc-stats-row-level"> are set to true.  Also,
     it's important to allow a slot for the autovacuum process when choosing
-    the value of .
+    the value of .  In
+    the default configuration, autovacuuming is enabled and the related
+    configuration parameters are appropriately set.
    
 
    
index 16f52bdf5657c21ce100c0589f2505f29768e68d..d04bacc58eec23edc061cde097c464bed6d25af9 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut .
  *
  * IDENTIFICATION
- *   $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.367 2007/01/09 22:16:46 momjian Exp $
+ *   $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.368 2007/01/16 18:26:02 alvherre Exp $
  *
  *--------------------------------------------------------------------
  */
@@ -711,7 +711,7 @@ static struct config_bool ConfigureNamesBool[] =
            NULL
        },
        &pgstat_collect_tuplelevel,
-       false, NULL, NULL
+       true, NULL, NULL
    },
    {
        {"stats_block_level", PGC_SUSET, STATS_COLLECTOR,
@@ -748,7 +748,7 @@ static struct config_bool ConfigureNamesBool[] =
            NULL
        },
        &autovacuum_start_daemon,
-       false, NULL, NULL
+       true, NULL, NULL
    },
 
    {
index 3f546f10c40a6e41707096cd3f2ac190fe93e237..50a02a62a505a7b6695c3a062e7ac6fd2b3f59e3 100644 (file)
 #stats_start_collector = on        # needed for block or row stats
                    # (change requires restart)
 #stats_block_level = off
-#stats_row_level = off
+#stats_row_level = on
 #stats_reset_on_server_start = off # (change requires restart)
 
 
 # AUTOVACUUM PARAMETERS
 #---------------------------------------------------------------------------
 
-#autovacuum = off          # enable autovacuum subprocess?
+#autovacuum = o          # enable autovacuum subprocess?
                    # 'on' requires stats_start_collector
                    # and stats_row_level to also be on
 #autovacuum_naptime = 1min     # time between autovacuum runs