diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/nodes/nodes.h | 2 | ||||
-rw-r--r-- | src/include/nodes/parsenodes.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index bf39dcc008c..b1168086e91 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -389,7 +389,7 @@ typedef enum NodeTag T_FuncWithArgs, T_AccessPriv, T_CreateOpClassItem, - T_InhRelation, + T_TableLikeClause, T_FunctionParameter, T_LockingClause, T_RowMarkClause, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 0be3fb11746..dce0e7270d1 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -504,16 +504,16 @@ typedef struct ColumnDef } ColumnDef; /* - * inhRelation - Relation a CREATE TABLE is to inherit attributes of + * TableLikeClause - CREATE TABLE ( ... LIKE ... ) clause */ -typedef struct InhRelation +typedef struct TableLikeClause { NodeTag type; RangeVar *relation; - bits32 options; /* OR of CreateStmtLikeOption flags */ -} InhRelation; + bits32 options; /* OR of TableLikeOption flags */ +} TableLikeClause; -typedef enum CreateStmtLikeOption +typedef enum TableLikeOption { CREATE_TABLE_LIKE_DEFAULTS = 1 << 0, CREATE_TABLE_LIKE_CONSTRAINTS = 1 << 1, @@ -521,7 +521,7 @@ typedef enum CreateStmtLikeOption CREATE_TABLE_LIKE_STORAGE = 1 << 3, CREATE_TABLE_LIKE_COMMENTS = 1 << 4, CREATE_TABLE_LIKE_ALL = 0x7FFFFFFF -} CreateStmtLikeOption; +} TableLikeOption; /* * IndexElem - index parameters (used in CREATE INDEX) |