mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
A little further progress on schemas: push down RangeVars into
addRangeTableEntry calls. Remove relname field from RTEs, since it will no longer be a useful unique identifier of relations; we want to encourage people to rely on the relation OID instead. Further work on dumping qual expressions in EXPLAIN, too.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.172 2002/03/21 16:00:39 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.173 2002/03/22 02:56:31 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1476,8 +1476,6 @@ _copyRangeTblEntry(RangeTblEntry *from)
|
||||
RangeTblEntry *newnode = makeNode(RangeTblEntry);
|
||||
|
||||
newnode->rtekind = from->rtekind;
|
||||
if (from->relname)
|
||||
newnode->relname = pstrdup(from->relname);
|
||||
newnode->relid = from->relid;
|
||||
Node_Copy(from, newnode, subquery);
|
||||
newnode->jointype = from->jointype;
|
||||
@ -2004,19 +2002,6 @@ _copyCreateStmt(CreateStmt *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static VersionStmt *
|
||||
_copyVersionStmt(VersionStmt *from)
|
||||
{
|
||||
VersionStmt *newnode = makeNode(VersionStmt);
|
||||
|
||||
newnode->relname = pstrdup(from->relname);
|
||||
newnode->direction = from->direction;
|
||||
newnode->fromRelname = pstrdup(from->fromRelname);
|
||||
newnode->date = pstrdup(from->date);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static DefineStmt *
|
||||
_copyDefineStmt(DefineStmt *from)
|
||||
{
|
||||
@ -2847,9 +2832,6 @@ copyObject(void *from)
|
||||
case T_CreateStmt:
|
||||
retval = _copyCreateStmt(from);
|
||||
break;
|
||||
case T_VersionStmt:
|
||||
retval = _copyVersionStmt(from);
|
||||
break;
|
||||
case T_DefineStmt:
|
||||
retval = _copyDefineStmt(from);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user