Commit 10a5e334 authored by Alvaro Herrera's avatar Alvaro Herrera

Enable autovacuum in the default configuration, per discussion.

parent eb63cc3d
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.101 2007/01/09 22:16:46 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.102 2007/01/16 18:26:02 alvherre Exp $ -->
<chapter Id="runtime-config"> <chapter Id="runtime-config">
<title>Server Configuration</title> <title>Server Configuration</title>
...@@ -3043,7 +3043,8 @@ SELECT * FROM parent WHERE key = 2400; ...@@ -3043,7 +3043,8 @@ SELECT * FROM parent WHERE key = 2400;
<listitem> <listitem>
<para> <para>
Enables the collection of row-level statistics on database 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. Only superusers can change this setting.
</para> </para>
</listitem> </listitem>
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.65 2006/12/27 14:55:17 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.66 2007/01/16 18:26:02 alvherre Exp $ -->
<chapter id="maintenance"> <chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title> <title>Routine Database Maintenance Tasks</title>
...@@ -477,7 +477,9 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb". ...@@ -477,7 +477,9 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
linkend="guc-stats-start-collector"> and <xref linkend="guc-stats-start-collector"> and <xref
linkend="guc-stats-row-level"> are set to <literal>true</literal>. Also, linkend="guc-stats-row-level"> are set to <literal>true</literal>. Also,
it's important to allow a slot for the autovacuum process when choosing it's important to allow a slot for the autovacuum process when choosing
the value of <xref linkend="guc-superuser-reserved-connections">. the value of <xref linkend="guc-superuser-reserved-connections">. In
the default configuration, autovacuuming is enabled and the related
configuration parameters are appropriately set.
</para> </para>
<para> <para>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
* *
* IDENTIFICATION * 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[] = ...@@ -711,7 +711,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL NULL
}, },
&pgstat_collect_tuplelevel, &pgstat_collect_tuplelevel,
false, NULL, NULL true, NULL, NULL
}, },
{ {
{"stats_block_level", PGC_SUSET, STATS_COLLECTOR, {"stats_block_level", PGC_SUSET, STATS_COLLECTOR,
...@@ -748,7 +748,7 @@ static struct config_bool ConfigureNamesBool[] = ...@@ -748,7 +748,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL NULL
}, },
&autovacuum_start_daemon, &autovacuum_start_daemon,
false, NULL, NULL true, NULL, NULL
}, },
{ {
......
...@@ -349,7 +349,7 @@ ...@@ -349,7 +349,7 @@
#stats_start_collector = on # needed for block or row stats #stats_start_collector = on # needed for block or row stats
# (change requires restart) # (change requires restart)
#stats_block_level = off #stats_block_level = off
#stats_row_level = off #stats_row_level = on
#stats_reset_on_server_start = off # (change requires restart) #stats_reset_on_server_start = off # (change requires restart)
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
# AUTOVACUUM PARAMETERS # AUTOVACUUM PARAMETERS
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
#autovacuum = off # enable autovacuum subprocess? #autovacuum = on # enable autovacuum subprocess?
# 'on' requires stats_start_collector # 'on' requires stats_start_collector
# and stats_row_level to also be on # and stats_row_level to also be on
#autovacuum_naptime = 1min # time between autovacuum runs #autovacuum_naptime = 1min # time between autovacuum runs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment