git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 52985e4)
Reduce the default value of autovacuum_vacuum_cost_delay to 2ms.
2019年3月10日 19:16:21 +0000 (15:16 -0400)
2019年3月10日 19:16:21 +0000 (15:16 -0400)
This is a better way to implement the desired change of increasing
autovacuum's default resource consumption.

Discussion: https://postgr.es/m/28720.1552101086@sss.pgh.pa.us


diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index 00664cd83ee43994c0d41a818c00027476d54696..fe1735722a6f4b0b0fec99d658c96f4c99a36ef5 100644 (file)
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -7033,7 +7033,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
Specifies the cost delay value that will be used in automatic
<command>VACUUM</command> operations. If -1 is specified, the regular
<xref linkend="guc-vacuum-cost-delay"/> value will be used.
- The default value is 20 milliseconds.
+ The default value is 2 milliseconds.
This parameter can only be set in the <filename>postgresql.conf</filename>
file or on the server command line;
but the setting can be overridden for individual tables by
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index c82804b1b95dceeabdfb4bc66f43e90b6ba568d8..fe6c6f8a05a51fc3db423d99663d3d35256b63d3 100644 (file)
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -3312,7 +3312,7 @@ static struct config_real ConfigureNamesReal[] =
GUC_UNIT_MS
},
&autovacuum_vac_cost_delay,
- 20, -1, 100,
+ 2, -1, 100,
NULL, NULL, NULL
},
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index 6f97a9ae281db8cedaae10cd4beab3d97adc4fae..cccb5f145a24fe0dbadda5de693debdfecb35c42 100644 (file)
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -589,7 +589,7 @@
#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
# before forced vacuum
# (change requires restart)
-#autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
+#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
# autovacuum, in milliseconds;
# -1 means use vacuum_cost_delay
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /