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

« back to all changes in this revision

Viewing changes to src/include/optimizer/planner.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
 * planner.h
 
4
 *        prototypes for planner.c.
 
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/planner.h
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef PLANNER_H
 
15
#define PLANNER_H
 
16
 
 
17
#include "nodes/plannodes.h"
 
18
#include "nodes/relation.h"
 
19
 
 
20
 
 
21
/* Hook for plugins to get control in planner() */
 
22
typedef PlannedStmt *(*planner_hook_type) (Query *parse,
 
23
                                                                                                           int cursorOptions,
 
24
                                                                                                  ParamListInfo boundParams);
 
25
extern PGDLLIMPORT planner_hook_type planner_hook;
 
26
 
 
27
 
 
28
extern PlannedStmt *planner(Query *parse, int cursorOptions,
 
29
                ParamListInfo boundParams);
 
30
extern PlannedStmt *standard_planner(Query *parse, int cursorOptions,
 
31
                                 ParamListInfo boundParams);
 
32
 
 
33
extern Plan *subquery_planner(PlannerGlobal *glob, Query *parse,
 
34
                                 PlannerInfo *parent_root,
 
35
                                 bool hasRecursion, double tuple_fraction,
 
36
                                 PlannerInfo **subroot);
 
37
 
 
38
extern Expr *expression_planner(Expr *expr);
 
39
 
 
40
extern bool plan_cluster_use_sort(Oid tableOid, Oid indexOid);
 
41
 
 
42
#endif   /* PLANNER_H */