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

Commitbfac8f8

Browse files
Fix vacuum_cost_delay check for balance calculation.
Commit1021bd6 excluded autovacuum workers from cost-limit balancecalculations when per-relation options were set. The code checks forlimit and cost_delay being greater than zero, but since cost_delay canbe set to -1 the test needs to check for greater than or zero.Backpatch to all supported branches since1021bd6 was backpatchedall the way at the time.Author: Masahiko Sawada <sawada.mshk@gmail.com>Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Discussion:https://postgr.es/m/CAD21AoBS7o6Ljt_vfqPQPf67AhzKu3fR0iqk8B=vVYczMugKMQ@mail.gmail.comBackpatch-through: v11 (all supported branches)
1 parent3034dc5 commitbfac8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/autovacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2947,7 +2947,7 @@ table_recheck_autovac(Oid relid, HTAB *table_toast_map,
29472947
*/
29482948
tab->at_dobalance=
29492949
!(avopts&& (avopts->vacuum_cost_limit>0||
2950-
avopts->vacuum_cost_delay>0));
2950+
avopts->vacuum_cost_delay >=0));
29512951
}
29522952

29532953
heap_freetuple(classTup);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp