Debian Codegraph @

src/include/parser/parse_utilcmd.h

raw
1 /*-------------------------------------------------------------------------
2 *
3 * parse_utilcmd.h
4 * parse analysis for utility commands
5 *
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/parser/parse_utilcmd.h
11 *
12 *-------------------------------------------------------------------------
13 */
14 #ifndef PARSE_UTILCMD_H
15 #define PARSE_UTILCMD_H
16
17 #include "parser/parse_node.h"
18
19 struct AttrMap; /* avoid including attmap.h here */
20
21
22 extern List *transformCreateStmt(CreateStmt *stmt, const char *queryString);
23 extern AlterTableStmt *transformAlterTableStmt(Oid relid, AlterTableStmt *stmt,
24 const char *queryString,
25 List **beforeStmts,
26 List **afterStmts);
27 extern IndexStmt *transformIndexStmt(Oid relid, IndexStmt *stmt,
28 const char *queryString);
29 extern CreateStatsStmt *transformStatsStmt(Oid relid, CreateStatsStmt *stmt,
30 const char *queryString);
31 extern void transformRuleStmt(RuleStmt *stmt, const char *queryString,
32 List **actions, Node **whereClause);
33 extern List *transformCreateSchemaStmtElements(List *schemaElts,
34 const char *schemaName);
35 extern PartitionBoundSpec *transformPartitionBound(ParseState *pstate, Relation parent,
36 PartitionBoundSpec *spec);
37 extern List *expandTableLikeClause(RangeVar *heapRel,
38 TableLikeClause *table_like_clause);
39 extern IndexStmt *generateClonedIndexStmt(RangeVar *heapRel,
40 Relation source_idx,
41 const struct AttrMap *attmap,
42 Oid *constraintOid);
43
44 #endif /* PARSE_UTILCMD_H */