diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index de88650b0e..ef80902747 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -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. diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index 3603692ee2..8da5c18c1a 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -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 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. diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 16f52bdf56..d04bacc58e 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -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 }, { diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample index 3f546f10c4..50a02a62a5 100644 --- a/src/backend/utils/misc/postgresql.conf.sample +++ b/src/backend/utils/misc/postgresql.conf.sample @@ -349,7 +349,7 @@ #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) @@ -365,7 +365,7 @@ # AUTOVACUUM PARAMETERS #--------------------------------------------------------------------------- -#autovacuum = off # enable autovacuum subprocess? +#autovacuum = on # enable autovacuum subprocess? # 'on' requires stats_start_collector # and stats_row_level to also be on #autovacuum_naptime = 1min # time between autovacuum runs