aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-09-02 23:12:16 +0000
committerBruce Momjian <bruce@momjian.us>2006-09-02 23:12:16 +0000
commite0938c3f5b03e48bca32fe903f057e5777d43df8 (patch)
treeb3a88dea16a0f3eafa9c0806c24d9b2ee7186c9c /src
parent946abc7c6875b64514f8528b590e97c35a99dee9 (diff)
downloadpostgresql-e0938c3f5b03e48bca32fe903f057e5777d43df8.tar.gz
postgresql-e0938c3f5b03e48bca32fe903f057e5777d43df8.zip
Make autovacuum behavior more agressive, per discussion on hackers list
--- was part of autovacuum default 'on' patch that was reverted, but we want this part. Peter Eisentraut
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/misc/guc.c10
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample8
2 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index fb12bd7adfc..f985c9da423 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.349 2006/09/02 23:04:20 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.350 2006/09/02 23:12:16 momjian Exp $
*
*--------------------------------------------------------------------
*/
@@ -1564,7 +1564,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&autovacuum_vac_thresh,
- 1000, 0, INT_MAX, NULL, NULL
+ 500, 0, INT_MAX, NULL, NULL
},
{
{"autovacuum_analyze_threshold", PGC_SIGHUP, AUTOVACUUM,
@@ -1572,7 +1572,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&autovacuum_anl_thresh,
- 500, 0, INT_MAX, NULL, NULL
+ 250, 0, INT_MAX, NULL, NULL
},
{
@@ -1738,7 +1738,7 @@ static struct config_real ConfigureNamesReal[] =
NULL
},
&autovacuum_vac_scale,
- 0.4, 0.0, 100.0, NULL, NULL
+ 0.2, 0.0, 100.0, NULL, NULL
},
{
{"autovacuum_analyze_scale_factor", PGC_SIGHUP, AUTOVACUUM,
@@ -1746,7 +1746,7 @@ static struct config_real ConfigureNamesReal[] =
NULL
},
&autovacuum_anl_scale,
- 0.2, 0.0, 100.0, NULL, NULL
+ 0.1, 0.0, 100.0, NULL, NULL
},
/* End-of-list marker */
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index 8726f01cd6d..dcd3a024432 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -363,13 +363,13 @@
#autovacuum = off # enable autovacuum subprocess?
#autovacuum_naptime = 60 # time between autovacuum runs, in secs
-#autovacuum_vacuum_threshold = 1000 # min # of tuple updates before
+#autovacuum_vacuum_threshold = 500 # min # of tuple updates before
# vacuum
-#autovacuum_analyze_threshold = 500 # min # of tuple updates before
+#autovacuum_analyze_threshold = 250 # min # of tuple updates before
# analyze
-#autovacuum_vacuum_scale_factor = 0.4 # fraction of rel size before
+#autovacuum_vacuum_scale_factor = 0.2 # fraction of rel size before
# vacuum
-#autovacuum_analyze_scale_factor = 0.2 # fraction of rel size before
+#autovacuum_analyze_scale_factor = 0.1 # fraction of rel size before
# analyze
#autovacuum_vacuum_cost_delay = -1 # default vacuum cost delay for
# autovac, -1 means use