]> granicus.if.org Git - postgresql/blob - src/include/optimizer/planner.h
Update copyright for 2009.
[postgresql] / src / include / optimizer / planner.h
1 /*-------------------------------------------------------------------------
2  *
3  * planner.h
4  *        prototypes for planner.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $PostgreSQL: pgsql/src/include/optimizer/planner.h,v 1.46 2009/01/01 17:24:00 momjian Exp $
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 extern Plan *subquery_planner(PlannerGlobal *glob, Query *parse,
33                                  PlannerInfo *parent_root,
34                                  bool hasRecursion, double tuple_fraction,
35                                  PlannerInfo **subroot);
36
37 #endif   /* PLANNER_H */