diff options
Diffstat (limited to 'src/include/optimizer/var.h')
-rw-r--r-- | src/include/optimizer/var.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/optimizer/var.h b/src/include/optimizer/var.h index c88da074a58..1153604e48a 100644 --- a/src/include/optimizer/var.h +++ b/src/include/optimizer/var.h @@ -7,14 +7,15 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: var.h,v 1.17 2001/11/05 17:46:34 momjian Exp $ + * $Id: var.h,v 1.18 2002/03/12 00:52:04 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef VAR_H #define VAR_H -#include "nodes/primnodes.h" +#include "nodes/parsenodes.h" + extern List *pull_varnos(Node *node); extern bool contain_var_reference(Node *node, int varno, int varattno, @@ -22,5 +23,8 @@ extern bool contain_var_reference(Node *node, int varno, int varattno, extern bool contain_whole_tuple_var(Node *node, int varno, int levelsup); extern bool contain_var_clause(Node *node); extern List *pull_var_clause(Node *node, bool includeUpperVars); +extern Node *flatten_join_alias_vars(Node *node, Query *root, int expandRTI); +extern void build_join_alias_subvars(Query *root, Var *aliasvar, + Var **leftsubvar, Var **rightsubvar); #endif /* VAR_H */ |