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

Commit7c366ac

Browse files
committed
Fix oversight in data-type change for autovacuum_vacuum_cost_delay.
Commitcaf626b missed that the relevant reloptions entry needsto be moved from the intRelOpts[] array to realRelOpts[].Somewhat surprisingly, it seems to work anyway, perhaps becausethe desired default and limit values are all integers. We oughtto have either a simpler data structure or better cross-checkinghere, but that's for another patch.Nikolay ShaplovDiscussion:https://postgr.es/m/4861742.12LTaSB3sv@x200m
1 parent1d21ba8 commit7c366ac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,6 @@ static relopt_int intRelOpts[] =
212212
},
213213
-1,0,INT_MAX
214214
},
215-
{
216-
{
217-
"autovacuum_vacuum_cost_delay",
218-
"Vacuum cost delay in milliseconds, for autovacuum",
219-
RELOPT_KIND_HEAP |RELOPT_KIND_TOAST,
220-
ShareUpdateExclusiveLock
221-
},
222-
-1,0,100
223-
},
224215
{
225216
{
226217
"autovacuum_vacuum_cost_limit",
@@ -346,6 +337,15 @@ static relopt_int intRelOpts[] =
346337

347338
staticrelopt_realrealRelOpts[]=
348339
{
340+
{
341+
{
342+
"autovacuum_vacuum_cost_delay",
343+
"Vacuum cost delay in milliseconds, for autovacuum",
344+
RELOPT_KIND_HEAP |RELOPT_KIND_TOAST,
345+
ShareUpdateExclusiveLock
346+
},
347+
-1,0.0,100.0
348+
},
349349
{
350350
{
351351
"autovacuum_vacuum_scale_factor",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp