~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * prep.h
 
4
 *        prototypes for files in optimizer/prep/
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * src/include/optimizer/prep.h
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef PREP_H
 
15
#define PREP_H
 
16
 
 
17
#include "nodes/plannodes.h"
 
18
#include "nodes/relation.h"
 
19
 
 
20
 
 
21
/*
 
22
 * prototypes for prepjointree.c
 
23
 */
 
24
extern void pull_up_sublinks(PlannerInfo *root);
 
25
extern void inline_set_returning_functions(PlannerInfo *root);
 
26
extern Node *pull_up_subqueries(PlannerInfo *root, Node *jtnode,
 
27
                                   JoinExpr *lowest_outer_join,
 
28
                                   AppendRelInfo *containing_appendrel);
 
29
extern void flatten_simple_union_all(PlannerInfo *root);
 
30
extern void reduce_outer_joins(PlannerInfo *root);
 
31
extern Relids get_relids_in_jointree(Node *jtnode, bool include_joins);
 
32
extern Relids get_relids_for_join(PlannerInfo *root, int joinrelid);
 
33
 
 
34
/*
 
35
 * prototypes for prepqual.c
 
36
 */
 
37
extern Node *negate_clause(Node *node);
 
38
extern Expr *canonicalize_qual(Expr *qual);
 
39
 
 
40
/*
 
41
 * prototypes for preptlist.c
 
42
 */
 
43
extern List *preprocess_targetlist(PlannerInfo *root, List *tlist);
 
44
 
 
45
extern PlanRowMark *get_plan_rowmark(List *rowmarks, Index rtindex);
 
46
 
 
47
/*
 
48
 * prototypes for prepunion.c
 
49
 */
 
50
extern Plan *plan_set_operations(PlannerInfo *root, double tuple_fraction,
 
51
                                        List **sortClauses);
 
52
 
 
53
extern void expand_inherited_tables(PlannerInfo *root);
 
54
 
 
55
extern Node *adjust_appendrel_attrs(Node *node, AppendRelInfo *appinfo);
 
56
 
 
57
#endif   /* PREP_H */