aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/parsenodes.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-01-07 14:58:13 +0200
committerPeter Eisentraut <peter_e@gmx.net>2012-01-07 23:02:33 +0200
commitdb49517c62750322fb2a37ff6324ecc00965e641 (patch)
tree6ebb1b135e88ee634f529faf237af2034ee926ca /src/include/nodes/parsenodes.h
parent0a41e865845bfa5d7aafcc5fe000dafa26573fef (diff)
downloadpostgresql-db49517c62750322fb2a37ff6324ecc00965e641.tar.gz
postgresql-db49517c62750322fb2a37ff6324ecc00965e641.zip
Rename the internal structures of the CREATE TABLE (LIKE ...) facility
The original implementation of this interpreted it as a kind of "inheritance" facility and named all the internal structures accordingly. This turned out to be very confusing, because it has nothing to do with the INHERITS feature. So rename all the internal parser infrastructure, update the comments, adjust the error messages, and split up the regression tests.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r--src/include/nodes/parsenodes.h12
1 files changed, 6 insertions, 6 deletions
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)