Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbccac3

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 increasingautovacuum's default resource consumption.Discussion:https://postgr.es/m/28720.1552101086@sss.pgh.pa.us
1 parent52985e4 commitcbccac3

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 is20 milliseconds.
7036+
The default value is2 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)

[8]ページ先頭

©2009-2025 Movatter.jp