mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +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:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: makefuncs.h,v 1.32 2002/03/21 16:01:43 tgl Exp $
|
||||
* $Id: makefuncs.h,v 1.33 2002/03/22 02:56:36 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -48,4 +48,6 @@ extern Alias *makeAlias(const char *aliasname, List *colnames);
|
||||
|
||||
extern RelabelType *makeRelabelType(Node *arg, Oid rtype, int32 rtypmod);
|
||||
|
||||
extern RangeVar *makeRangeVar(char *schemaname, char *relname);
|
||||
|
||||
#endif /* MAKEFUNC_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: nodes.h,v 1.102 2002/03/21 16:01:44 tgl Exp $
|
||||
* $Id: nodes.h,v 1.103 2002/03/22 02:56:36 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -153,7 +153,6 @@ typedef enum NodeTag
|
||||
T_ClusterStmt,
|
||||
T_CopyStmt,
|
||||
T_CreateStmt,
|
||||
T_VersionStmt,
|
||||
T_DefineStmt,
|
||||
T_DropStmt,
|
||||
T_TruncateStmt,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parsenodes.h,v 1.163 2002/03/21 16:01:46 tgl Exp $
|
||||
* $Id: parsenodes.h,v 1.164 2002/03/22 02:56:36 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -475,7 +475,7 @@ typedef struct TargetEntry
|
||||
* eref is the table reference name and column reference names (either
|
||||
* real or aliases). Note that system columns (OID etc) are not included
|
||||
* in the column list.
|
||||
* eref->relname is required to be present, and should generally be used
|
||||
* eref->aliasname is required to be present, and should generally be used
|
||||
* to identify the RTE for error messages etc.
|
||||
*
|
||||
* inh is TRUE for relation references that should be expanded to include
|
||||
@@ -521,9 +521,8 @@ typedef struct RangeTblEntry
|
||||
*/
|
||||
|
||||
/*
|
||||
* Fields valid for a plain relation RTE (else NULL/zero):
|
||||
* Fields valid for a plain relation RTE (else zero):
|
||||
*/
|
||||
char *relname; /* real name of the relation */
|
||||
Oid relid; /* OID of the relation */
|
||||
|
||||
/*
|
||||
@@ -532,7 +531,7 @@ typedef struct RangeTblEntry
|
||||
Query *subquery; /* the sub-query */
|
||||
|
||||
/*
|
||||
* Fields valid for a join RTE (else NULL):
|
||||
* Fields valid for a join RTE (else NULL/zero):
|
||||
*
|
||||
* joincoltypes/joincoltypmods identify the column datatypes of the
|
||||
* join result. joinleftcols and joinrightcols identify the source
|
||||
@@ -1057,19 +1056,6 @@ typedef struct CreateSeqStmt
|
||||
List *options;
|
||||
} CreateSeqStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Create Version Statement
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct VersionStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *relname; /* the new relation */
|
||||
int direction; /* FORWARD | BACKWARD */
|
||||
char *fromRelname; /* relation to create a version */
|
||||
char *date; /* date of the snapshot */
|
||||
} VersionStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Create {Operator|Type|Aggregate} Statement
|
||||
* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user