mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
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.
This commit is contained in:
@ -2066,9 +2066,9 @@ _outDefElem(StringInfo str, const DefElem *node)
|
||||
}
|
||||
|
||||
static void
|
||||
_outInhRelation(StringInfo str, const InhRelation *node)
|
||||
_outTableLikeClause(StringInfo str, const TableLikeClause *node)
|
||||
{
|
||||
WRITE_NODE_TYPE("INHRELATION");
|
||||
WRITE_NODE_TYPE("TABLELIKECLAUSE");
|
||||
|
||||
WRITE_NODE_FIELD(relation);
|
||||
WRITE_UINT_FIELD(options);
|
||||
@ -3142,8 +3142,8 @@ _outNode(StringInfo str, const void *obj)
|
||||
case T_DefElem:
|
||||
_outDefElem(str, obj);
|
||||
break;
|
||||
case T_InhRelation:
|
||||
_outInhRelation(str, obj);
|
||||
case T_TableLikeClause:
|
||||
_outTableLikeClause(str, obj);
|
||||
break;
|
||||
case T_LockingClause:
|
||||
_outLockingClause(str, obj);
|
||||
|
Reference in New Issue
Block a user