mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +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:
@ -2727,10 +2727,10 @@ _copyCreateStmt(const CreateStmt *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static InhRelation *
|
||||
_copyInhRelation(const InhRelation *from)
|
||||
static TableLikeClause *
|
||||
_copyTableLikeClause(const TableLikeClause *from)
|
||||
{
|
||||
InhRelation *newnode = makeNode(InhRelation);
|
||||
TableLikeClause *newnode = makeNode(TableLikeClause);
|
||||
|
||||
COPY_NODE_FIELD(relation);
|
||||
COPY_SCALAR_FIELD(options);
|
||||
@ -4134,8 +4134,8 @@ copyObject(const void *from)
|
||||
case T_CreateStmt:
|
||||
retval = _copyCreateStmt(from);
|
||||
break;
|
||||
case T_InhRelation:
|
||||
retval = _copyInhRelation(from);
|
||||
case T_TableLikeClause:
|
||||
retval = _copyTableLikeClause(from);
|
||||
break;
|
||||
case T_DefineStmt:
|
||||
retval = _copyDefineStmt(from);
|
||||
|
Reference in New Issue
Block a user