summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-08-23 06:14:11 +0200
committerPeter Eisentraut <peter@eisentraut.org>2023-08-23 06:39:39 +0200
commit11af63fb48d278b86aa948a5b57f136ef03c2bb7 (patch)
tree78f89e389fef01388c7af690f7106a52d01e2d5b /src/include/commands
parentf4b54e1ed9853ab9aff524494866823f951b1e7f (diff)
Add const decorations
in index.c and indexcmds.c and some adjacent places. This especially makes it easier to understand for some complicated function signatures which are the input and the output arguments. Discussion: https://www.postgresql.org/message-id/flat/5ed89c69-f4e6-5dab-4003-63bde7460e5e%40eisentraut.org
Diffstat (limited to 'src/include/commands')
-rw-r--r--src/include/commands/defrem.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h
index 478203ed4c4..190040d4638 100644
--- a/src/include/commands/defrem.h
+++ b/src/include/commands/defrem.h
@@ -35,7 +35,7 @@ extern ObjectAddress DefineIndex(Oid relationId,
bool check_not_in_use,
bool skip_build,
bool quiet);
-extern void ExecReindex(ParseState *pstate, ReindexStmt *stmt, bool isTopLevel);
+extern void ExecReindex(ParseState *pstate, const 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,
@@ -43,10 +43,10 @@ extern char *ChooseRelationName(const char *name1, const char *name2,
bool isconstraint);
extern bool CheckIndexCompatible(Oid oldId,
const char *accessMethodName,
- List *attributeList,
- List *exclusionOpNames);
+ const List *attributeList,
+ const List *exclusionOpNames);
extern Oid GetDefaultOpClass(Oid type_id, Oid am_id);
-extern Oid ResolveOpClass(List *opclass, Oid attrType,
+extern Oid ResolveOpClass(const List *opclass, Oid attrType,
const char *accessMethodName, Oid accessMethodId);
/* commands/functioncmds.c */