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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy