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

Commit4d54543

Browse files
committed
Fix upper limit for vacuum_cleanup_index_scale_factor
6ca33a8 sets upper limit for vacuum_cleanup_index_scale_factor toDBL_MAX. DBL_MAX appears to be platform-dependent. That causesmany buildfarm animals to fail, because we check boundaries ofvacuum_cleanup_index_scale_factor in regression tests.This commit changes upper limit from DBL_MAX to just "large enough"limit, which was arbitrary selected as 1e10.Author: Alexander KorotkovReported-by: Tom Lane, Darafei PraliaskouskiDiscussion:https://postgr.es/m/CAPpHfdvewmr4PcpRjrkstoNn1n2_6dL-iHRB21CCfZ0efZdBTg%40mail.gmail.comDiscussion:https://postgr.es/m/CAC8Q8tLYFOpKNaPS_E7V8KtPdE%3D_TnAn16t%3DA3LuL%3DXjfOO-BQ%40mail.gmail.com
1 parenta89357e commit4d54543

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6989,7 +6989,8 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
69896989
</para>
69906990

69916991
<para>
6992-
The value should be non-negative.
6992+
The value can range from <literal>0</literal> to
6993+
<literal>10000000000</literal>.
69936994
When <varname>vacuum_cleanup_index_scale_factor</varname> is set to
69946995
<literal>0</literal>, index scans are never skipped during
69956996
<command>VACUUM</command> cleanup. The default value is <literal>0.1</literal>.

‎src/backend/access/common/reloptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static relopt_real realRelOpts[] =
416416
RELOPT_KIND_BTREE,
417417
ShareUpdateExclusiveLock
418418
},
419-
-1,0.0,DBL_MAX
419+
-1,0.0,1e10
420420
},
421421
/* list terminator */
422422
{{NULL}}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3253,7 +3253,7 @@ static struct config_real ConfigureNamesReal[] =
32533253
NULL
32543254
},
32553255
&vacuum_cleanup_index_scale_factor,
3256-
0.1,0.0,DBL_MAX,
3256+
0.1,0.0,1e10,
32573257
NULL,NULL,NULL
32583258
},
32593259

‎src/test/regress/expected/btree_index.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ select reloptions from pg_class WHERE oid = 'btree_idx1'::regclass;
165165
-- Fail while setting improper values
166166
create index btree_idx_err on btree_test(a) with (vacuum_cleanup_index_scale_factor = -10.0);
167167
ERROR: value -10.0 out of bounds for option "vacuum_cleanup_index_scale_factor"
168-
DETAIL: Valid values are between "0.000000" and "179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.000000".
168+
DETAIL: Valid values are between "0.000000" and "10000000000.000000".
169169
create index btree_idx_err on btree_test(a) with (vacuum_cleanup_index_scale_factor = 100.0);
170170
create index btree_idx_err on btree_test(a) with (vacuum_cleanup_index_scale_factor = 'string');
171171
ERROR: invalid value for floating point option "vacuum_cleanup_index_scale_factor": string

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp