diff options
| author | Thomas G. Lockhart <lockhart@fourpalms.org> | 2000-02-15 03:38:29 +0000 |
|---|---|---|
| committer | Thomas G. Lockhart <lockhart@fourpalms.org> | 2000-02-15 03:38:29 +0000 |
| commit | a344a6e7b5d7b2b87f33a155c3ef88bdfdce3fd8 (patch) | |
| tree | 78c19baad416cfe014237bc726baff63aff2b150 /src/include/parser/parse_node.h | |
| parent | 92c8437d8de8efeb5324fcccb0175beec8e66619 (diff) | |
| download | postgresql-a344a6e7b5d7b2b87f33a155c3ef88bdfdce3fd8.tar.gz | |
Carry column aliases from the parser frontend. Enables queries like
SELECT a FROM t1 tx (a);
Allow join syntax, including queries like
SELECT * FROM t1 NATURAL JOIN t2;
Update RTE structure to hold column aliases in an Attr structure.
Diffstat (limited to 'src/include/parser/parse_node.h')
| -rw-r--r-- | src/include/parser/parse_node.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/parser/parse_node.h b/src/include/parser/parse_node.h index 4ba502ebaf..16641b530a 100644 --- a/src/include/parser/parse_node.h +++ b/src/include/parser/parse_node.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_node.h,v 1.17 2000/01/26 05:58:27 momjian Exp $ + * $Id: parse_node.h,v 1.18 2000/02/15 03:38:29 thomas Exp $ * *------------------------------------------------------------------------- */ @@ -16,7 +16,11 @@ #include "nodes/parsenodes.h" #include "utils/rel.h" -/* state information used during parse analysis */ +/* State information used during parse analysis + * p_join_quals is a list of qualification expressions + * found in the FROM clause. Needs to be available later + * to merge with other qualifiers from the WHERE clause. + */ typedef struct ParseState { int p_last_resno; @@ -30,6 +34,9 @@ typedef struct ParseState bool p_in_where_clause; Relation p_target_relation; RangeTblEntry *p_target_rangetblentry; + List *p_shape; + List *p_alias; + Node *p_join_quals; } ParseState; extern ParseState *make_parsestate(ParseState *parentParseState); |
