Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 10a5e33

Browse files
committed
Enable autovacuum in the default configuration, per discussion.
1 parent eb63cc3 commit 10a5e33

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

doc/src/sgml/config.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.101 2007/01/09 22:16:46 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.102 2007/01/16 18:26:02 alvherre Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -3043,7 +3043,8 @@ SELECT * FROM parent WHERE key = 2400;
30433043
<listitem>
30443044
<para>
30453045
Enables the collection of row-level statistics on database
3046-
activity. This parameter is off by default.
3046+
activity. This parameter is on by default, because the autovacuum
3047+
daemon needs the collected information.
30473048
Only superusers can change this setting.
30483049
</para>
30493050
</listitem>

doc/src/sgml/maintenance.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.65 2006/12/27 14:55:17 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.66 2007/01/16 18:26:02 alvherre Exp $ -->
22

33
<chapter id="maintenance">
44
<title>Routine Database Maintenance Tasks</title>
@@ -477,7 +477,9 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
477477
linkend="guc-stats-start-collector"> and <xref
478478
linkend="guc-stats-row-level"> are set to <literal>true</literal>. Also,
479479
it's important to allow a slot for the autovacuum process when choosing
480-
the value of <xref linkend="guc-superuser-reserved-connections">.
480+
the value of <xref linkend="guc-superuser-reserved-connections">. In
481+
the default configuration, autovacuuming is enabled and the related
482+
configuration parameters are appropriately set.
481483
</para>
482484

483485
<para>

src/backend/utils/misc/guc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.367 2007/01/09 22:16:46 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.368 2007/01/16 18:26:02 alvherre Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -711,7 +711,7 @@ static struct config_bool ConfigureNamesBool[] =
711711
NULL
712712
},
713713
&pgstat_collect_tuplelevel,
714-
false, NULL, NULL
714+
true, NULL, NULL
715715
},
716716
{
717717
{"stats_block_level", PGC_SUSET, STATS_COLLECTOR,
@@ -748,7 +748,7 @@ static struct config_bool ConfigureNamesBool[] =
748748
NULL
749749
},
750750
&autovacuum_start_daemon,
751-
false, NULL, NULL
751+
true, NULL, NULL
752752
},
753753

754754
{

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
#stats_start_collector = on # needed for block or row stats
350350
# (change requires restart)
351351
#stats_block_level = off
352-
#stats_row_level = off
352+
#stats_row_level = on
353353
#stats_reset_on_server_start = off # (change requires restart)
354354

355355

@@ -365,7 +365,7 @@
365365
# AUTOVACUUM PARAMETERS
366366
#---------------------------------------------------------------------------
367367

368-
#autovacuum = off # enable autovacuum subprocess?
368+
#autovacuum = on # enable autovacuum subprocess?
369369
# 'on' requires stats_start_collector
370370
# and stats_row_level to also be on
371371
#autovacuum_naptime = 1min # time between autovacuum runs

0 commit comments

Comments
 (0)