From a344a6e7b5d7b2b87f33a155c3ef88bdfdce3fd8 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Tue, 15 Feb 2000 03:38:29 +0000 Subject: 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. --- src/include/parser/parse_node.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/include/parser/parse_node.h') 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); -- cgit v1.2.1