diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-26 13:32:30 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-03-26 13:32:38 -0400 |
commit | 7c366ac969ce060c4080fbdfe74a0131ae4bf6bb (patch) | |
tree | ef63f556f125a7d4d063bd3be29805b923ae761c | |
parent | 1d21ba8a9b8cb784f927a2c9c5818f8ff6779c0b (diff) | |
download | postgresql-7c366ac969ce060c4080fbdfe74a0131ae4bf6bb.tar.gz postgresql-7c366ac969ce060c4080fbdfe74a0131ae4bf6bb.zip |
Fix oversight in data-type change for autovacuum_vacuum_cost_delay.
Commit caf626b2c 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
-rw-r--r-- | src/backend/access/common/reloptions.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/access/common/reloptions.c b/src/backend/access/common/reloptions.c index 3b0b138f247..b58a1f7a729 100644 --- a/src/backend/access/common/reloptions.c +++ b/src/backend/access/common/reloptions.c @@ -214,15 +214,6 @@ static relopt_int intRelOpts[] = }, { { - "autovacuum_vacuum_cost_delay", - "Vacuum cost delay in milliseconds, for autovacuum", - RELOPT_KIND_HEAP | RELOPT_KIND_TOAST, - ShareUpdateExclusiveLock - }, - -1, 0, 100 - }, - { - { "autovacuum_vacuum_cost_limit", "Vacuum cost amount available before napping, for autovacuum", RELOPT_KIND_HEAP | RELOPT_KIND_TOAST, @@ -348,6 +339,15 @@ static relopt_real realRelOpts[] = { { { + "autovacuum_vacuum_cost_delay", + "Vacuum cost delay in milliseconds, for autovacuum", + RELOPT_KIND_HEAP | RELOPT_KIND_TOAST, + ShareUpdateExclusiveLock + }, + -1, 0.0, 100.0 + }, + { + { "autovacuum_vacuum_scale_factor", "Number of tuple updates or deletes prior to vacuum as a fraction of reltuples", RELOPT_KIND_HEAP | RELOPT_KIND_TOAST, |