aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2021-08-03 21:53:40 -0700
committerPeter Geoghegan <pg@bowt.ie>2021-08-03 21:53:40 -0700
commite8086bd3ba0ab73a18ac2293dd14f488734126ec (patch)
treeeceb3ad039a114fb9a0be1e64ba006a0b3e5b63c /src
parent3a0ba31a32f2def545399549c2ace6951f98e47c (diff)
downloadpostgresql-e8086bd3ba0ab73a18ac2293dd14f488734126ec.tar.gz
postgresql-e8086bd3ba0ab73a18ac2293dd14f488734126ec.zip
Make vacuum_index_cleanup reloption RELOPT_TYPE_ENUM.
Oversight in commit 3499df0d, which generalized the reloption as a way of giving users a way to consistently avoid VACUUM's index bypass optimization. Per off-list report from Nikolay Shaplov. Backpatch: 14-, where index cleanup reloption was extended.
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/common/reloptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/common/reloptions.c b/src/backend/access/common/reloptions.c
index dba32ceff3b..7566265bcb1 100644
--- a/src/backend/access/common/reloptions.c
+++ b/src/backend/access/common/reloptions.c
@@ -1873,7 +1873,7 @@ default_reloptions(Datum reloptions, bool validate, relopt_kind kind)
offsetof(StdRdOptions, user_catalog_table)},
{"parallel_workers", RELOPT_TYPE_INT,
offsetof(StdRdOptions, parallel_workers)},
- {"vacuum_index_cleanup", RELOPT_TYPE_BOOL,
+ {"vacuum_index_cleanup", RELOPT_TYPE_ENUM,
offsetof(StdRdOptions, vacuum_index_cleanup)},
{"vacuum_truncate", RELOPT_TYPE_BOOL,
offsetof(StdRdOptions, vacuum_truncate)}