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

Commit52985e4

Browse files
committed
Revert "Increase the default vacuum_cost_limit from 200 to 2000"
This reverts commitbd09503.Per discussion, it seems like what we should do instead is toreduce the default value of autovacuum_vacuum_cost_delay by thesame factor. That's functionally equivalent as long as theplatform can accurately service the smaller delay request, whichshould be true on anything released in the last 10 years or more.And smaller, more-closely-spaced delays are better in terms ofproviding a steady I/O load.Discussion:https://postgr.es/m/28720.1552101086@sss.pgh.pa.us
1 parentcaf626b commit52985e4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ include_dir 'conf.d'
19321932
<listitem>
19331933
<para>
19341934
The accumulated cost that will cause the vacuuming process to sleep.
1935-
The default value is2000.
1935+
The default value is200.
19361936
</para>
19371937
</listitem>
19381938
</varlistentry>

‎src/backend/utils/init/globals.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ intMaxBackends = 0;
137137
intVacuumCostPageHit=1;/* GUC parameters for vacuum */
138138
intVacuumCostPageMiss=10;
139139
intVacuumCostPageDirty=20;
140-
intVacuumCostLimit=2000;
140+
intVacuumCostLimit=200;
141141
doubleVacuumCostDelay=0;
142142

143143
intVacuumPageHit=0;

‎src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@ static struct config_int ConfigureNamesInt[] =
22652265
NULL
22662266
},
22672267
&VacuumCostLimit,
2268-
2000,1,10000,
2268+
200,1,10000,
22692269
NULL,NULL,NULL
22702270
},
22712271

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
#vacuum_cost_page_hit = 1# 0-10000 credits
160160
#vacuum_cost_page_miss = 10# 0-10000 credits
161161
#vacuum_cost_page_dirty = 20# 0-10000 credits
162-
#vacuum_cost_limit =2000# 1-10000 credits
162+
#vacuum_cost_limit =200# 1-10000 credits
163163

164164
# - Background Writer -
165165

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp