Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7c366ac

Browse files
committed
Fix oversight in data-type change for autovacuum_vacuum_cost_delay.
Commit caf626b missed that the relevant reloptions entry needs to be moved from the intRelOpts[] array to realRelOpts[]. Somewhat surprisingly, it seems to work anyway, perhaps because the desired default and limit values are all integers. We ought to have either a simpler data structure or better cross-checking here, but that's for another patch. Nikolay Shaplov Discussion: https://postgr.es/m/4861742.12LTaSB3sv@x200m
1 parent 1d21ba8 commit 7c366ac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/backend/access/common/reloptions.c

+9-9
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
static relopt_real realRelOpts[] =
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)