Skip to content

Commit cbccac3

Browse files
committed
Reduce the default value of autovacuum_vacuum_cost_delay to 2ms.
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
1 parent 52985e4 commit cbccac3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/src/sgml/config.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7033,7 +7033,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
70337033
Specifies the cost delay value that will be used in automatic
70347034
<command>VACUUM</command> operations. If -1 is specified, the regular
70357035
<xref linkend="guc-vacuum-cost-delay"/> value will be used.
7036-
The default value is 20 milliseconds.
7036+
The default value is 2 milliseconds.
70377037
This parameter can only be set in the <filename>postgresql.conf</filename>
70387038
file or on the server command line;
70397039
but the setting can be overridden for individual tables by

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3312,7 +3312,7 @@ static struct config_real ConfigureNamesReal[] =
33123312
GUC_UNIT_MS
33133313
},
33143314
&autovacuum_vac_cost_delay,
3315-
20, -1, 100,
3315+
2, -1, 100,
33163316
NULL, NULL, NULL
33173317
},
33183318

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@
589589
#autovacuum_multixact_freeze_max_age = 400000000 # maximum multixact age
590590
# before forced vacuum
591591
# (change requires restart)
592-
#autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
592+
#autovacuum_vacuum_cost_delay = 2ms # default vacuum cost delay for
593593
# autovacuum, in milliseconds;
594594
# -1 means use vacuum_cost_delay
595595
#autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy