aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/defrem.h
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-01-18 14:03:10 +0900
committerMichael Paquier <michael@paquier.xyz>2021-01-18 14:03:10 +0900
commita3dc926009be833ea505eebd77ce4b72fe708b18 (patch)
treeb72f640647fdb3792d66758c9080f2aca6cf5de0 /src/include/commands/defrem.h
parent04eb75e783ba49ca2e0e75088d6590b64be8ed4d (diff)
downloadpostgresql-a3dc926009be833ea505eebd77ce4b72fe708b18.tar.gz
postgresql-a3dc926009be833ea505eebd77ce4b72fe708b18.zip
Refactor option handling of CLUSTER, REINDEX and VACUUM
This continues the work done in b5913f6. All the options of those commands are changed to use hex values rather than enums to reduce the risk of compatibility bugs when introducing new options. Each option set is moved into a new structure that can be extended with more non-boolean options (this was already the case of VACUUM). The code of REINDEX is restructured so as manual REINDEX commands go through a single routine from utility.c, like VACUUM, to ease the allocation handling of option parameters when a command needs to go through multiple transactions. This can be used as a base infrastructure for future patches related to those commands, including reindex filtering and tablespace support. Per discussion with people mentioned below, as well as Alvaro Herrera and Peter Eisentraut. Author: Michael Paquier, Justin Pryzby Reviewed-by: Alexey Kondratov, Justin Pryzby Discussion: https://postgr.es/m/X8riynBLwxAD9uKk@paquier.xyz
Diffstat (limited to 'src/include/commands/defrem.h')
-rw-r--r--src/include/commands/defrem.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h
index e2d2a77ca49..1a79540c94d 100644
--- a/src/include/commands/defrem.h
+++ b/src/include/commands/defrem.h
@@ -34,11 +34,7 @@ extern ObjectAddress DefineIndex(Oid relationId,
bool check_not_in_use,
bool skip_build,
bool quiet);
-extern int ReindexParseOptions(ParseState *pstate, ReindexStmt *stmt);
-extern void ReindexIndex(RangeVar *indexRelation, int options, bool isTopLevel);
-extern Oid ReindexTable(RangeVar *relation, int options, bool isTopLevel);
-extern void ReindexMultipleTables(const char *objectName, ReindexObjectType objectKind,
- int options);
+extern void ExecReindex(ParseState *pstate, ReindexStmt *stmt, bool isTopLevel);
extern char *makeObjectName(const char *name1, const char *name2,
const char *label);
extern char *ChooseRelationName(const char *name1, const char *name2,