You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Increase upper limit for vacuum_cleanup_index_scale_factor
Upper limits for vacuum_cleanup_index_scale_factor GUC and reloption
were initially set to 100.0 in 857f9c3. However, after further
discussion, it appears that some users like to disable B-tree cleanup
index scan completely (assuming there are no deleted pages).
vacuum_cleanup_index_scale_factor is used barely to protect against
stalled index statistics. And after detailed consideration it appears
that risk of stalled index statistics is low. And it would be nice to
allow advanced users setting higher values of
vacuum_cleanup_index_scale_factor. So, set upper limit for these
GUC and reloption to DBL_MAX.
Author: Alexander Korotkov
Reviewed-by: Masahiko Sawada
Discussion: https://postgr.es/m/CAC8Q8tJCb%3DgxhzcV7T6ctx7PY-Ux1oA-AsTJc6cAVNsQiYcCzA%40mail.gmail.com
Copy file name to clipboardExpand all lines: src/test/regress/expected/btree_index.out
+1-1
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ select reloptions from pg_class WHERE oid = 'btree_idx1'::regclass;
165
165
-- Fail while setting improper values
166
166
create index btree_idx_err on btree_test(a) with (vacuum_cleanup_index_scale_factor = -10.0);
167
167
ERROR: value -10.0 out of bounds for option "vacuum_cleanup_index_scale_factor"
168
-
DETAIL: Valid values are between "0.000000" and "100.000000".
168
+
DETAIL: Valid values are between "0.000000" and "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000".
169
169
create index btree_idx_err on btree_test(a) with (vacuum_cleanup_index_scale_factor = 100.0);
170
170
create index btree_idx_err on btree_test(a) with (vacuum_cleanup_index_scale_factor = 'string');
171
171
ERROR: invalid value for floating point option "vacuum_cleanup_index_scale_factor": string
0 commit comments