~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/optimizer/var.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * var.h
 
4
 *        prototypes for var.c.
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL: pgsql/src/include/optimizer/var.h,v 1.32 2004-12-31 22:03:36 pgsql Exp $
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef VAR_H
 
15
#define VAR_H
 
16
 
 
17
#include "nodes/relation.h"
 
18
 
 
19
 
 
20
extern Relids pull_varnos(Node *node);
 
21
extern bool contain_var_reference(Node *node, int varno, int varattno,
 
22
                                          int levelsup);
 
23
extern bool contain_var_clause(Node *node);
 
24
extern bool contain_vars_of_level(Node *node, int levelsup);
 
25
extern bool contain_vars_above_level(Node *node, int levelsup);
 
26
extern int      find_minimum_var_level(Node *node);
 
27
extern List *pull_var_clause(Node *node, bool includeUpperVars);
 
28
extern Node *flatten_join_alias_vars(Query *root, Node *node);
 
29
 
 
30
#endif   /* VAR_H */