-<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.77 2006/08/29 02:11:29 momjian Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.78 2006/08/29 11:37:47 petere Exp $ -->
<chapter Id="runtime-config">
<title>Server Configuration</title>
</para>
<para>
- The default value is 3. The value must be less than the value of
+ The default value is 2. The value must be less than the value of
<varname>max_connections</varname>. This parameter can only be
set at server start.
</para>
<listitem>
<para>
Enables the collection of row-level statistics on database
- activity. This parameter is on by default, because the autovacuum
- daemon needs the collected information.
+ activity. This parameter is off by default.
Only superusers can change this setting.
</para>
</listitem>
<para>
Specifies the minimum number of updated or deleted tuples needed
to trigger a <command>VACUUM</> in any one table.
- The default is 500.
+ The default is 1000.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
<para>
Specifies the minimum number of inserted, updated or deleted tuples
needed to trigger an <command>ANALYZE</> in any one table.
- The default is 250.
+ The default is 500.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
Specifies a fraction of the table size to add to
<varname>autovacuum_vacuum_threshold</varname>
when deciding whether to trigger a <command>VACUUM</>.
- The default is 0.2.
+ The default is 0.4.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
Specifies a fraction of the table size to add to
<varname>autovacuum_analyze_threshold</varname>
when deciding whether to trigger an <command>ANALYZE</>.
- The default is 0.1.
+ The default is 0.2.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
This setting can be overridden for individual tables by entries in
-<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.60 2006/08/28 13:37:18 petere Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.61 2006/08/29 11:37:47 petere Exp $ -->
<chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title>
</sect2>
<sect2 id="autovacuum">
- <title id="autovacuum-title">The autovacuum daemon</title>
+ <title id="autovacuum-title">The auto-vacuum daemon</title>
<indexterm>
<primary>autovacuum</primary>
<secondary>general information</secondary>
</indexterm>
<para>
- There is a
+ Beginning in <productname>PostgreSQL </productname> 8.1, there is a
separate optional server process called the <firstterm>autovacuum
daemon</firstterm>, whose purpose is to automate the execution of
<command>VACUUM</command> and <command>ANALYZE </command> commands.
linkend="guc-stats-start-collector"> and <xref
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
- the value of <xref linkend="guc-superuser-reserved-connections">. In
- the default configuration, autovacuuming is enabled and the related
- configuration parameters are appropriately set.
+ the value of <xref linkend="guc-superuser-reserved-connections">.
</para>
<para>
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.344 2006/08/28 13:37:18 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.345 2006/08/29 11:37:47 petere Exp $
*
*--------------------------------------------------------------------
*/
NULL
},
&pgstat_collect_tuplelevel,
- true, NULL, NULL
+ false, NULL, NULL
},
{
{"stats_block_level", PGC_SUSET, STATS_COLLECTOR,
NULL
},
&autovacuum_start_daemon,
- true, NULL, NULL
+ false, NULL, NULL
},
{
NULL
},
&ReservedBackends,
- 3, 0, INT_MAX / 4, NULL, NULL
+ 2, 0, INT_MAX / 4, NULL, NULL
},
{
NULL
},
&autovacuum_vac_thresh,
- 500, 0, INT_MAX, NULL, NULL
+ 1000, 0, INT_MAX, NULL, NULL
},
{
{"autovacuum_analyze_threshold", PGC_SIGHUP, AUTOVACUUM,
NULL
},
&autovacuum_anl_thresh,
- 250, 0, INT_MAX, NULL, NULL
+ 500, 0, INT_MAX, NULL, NULL
},
{
NULL
},
&autovacuum_vac_scale,
- 0.2, 0.0, 100.0, NULL, NULL
+ 0.4, 0.0, 100.0, NULL, NULL
},
{
{"autovacuum_analyze_scale_factor", PGC_SIGHUP, AUTOVACUUM,
NULL
},
&autovacuum_anl_scale,
- 0.1, 0.0, 100.0, NULL, NULL
+ 0.2, 0.0, 100.0, NULL, NULL
},
/* End-of-list marker */
# Note: increasing max_connections costs ~400 bytes of shared memory per
# connection slot, plus lock space (see max_locks_per_transaction). You
# might also need to raise shared_buffers to support more connections.
-#superuser_reserved_connections = 3 # (change requires restart)
+#superuser_reserved_connections = 2 # (change requires restart)
#unix_socket_directory = '' # (change requires restart)
#unix_socket_group = '' # (change requires restart)
#unix_socket_permissions = 0777 # octal
#stats_start_collector = on # needed for block or row stats
# (change requires restart)
#stats_block_level = off
-#stats_row_level = on
+#stats_row_level = off
#stats_reset_on_server_start = off # (change requires restart)
# AUTOVACUUM PARAMETERS
#---------------------------------------------------------------------------
-#autovacuum = on # enable autovacuum subprocess?
+#autovacuum = off # enable autovacuum subprocess?
#autovacuum_naptime = 60 # time between autovacuum runs, in secs
-#autovacuum_vacuum_threshold = 500 # min # of tuple updates before
+#autovacuum_vacuum_threshold = 1000 # min # of tuple updates before
# vacuum
-#autovacuum_analyze_threshold = 250 # min # of tuple updates before
+#autovacuum_analyze_threshold = 500 # min # of tuple updates before
# analyze
-#autovacuum_vacuum_scale_factor = 0.2 # fraction of rel size before
+#autovacuum_vacuum_scale_factor = 0.4 # fraction of rel size before
# vacuum
-#autovacuum_analyze_scale_factor = 0.1 # fraction of rel size before
+#autovacuum_analyze_scale_factor = 0.2 # fraction of rel size before
# analyze
#autovacuum_vacuum_cost_delay = -1 # default vacuum cost delay for
# autovac, -1 means use