1 /*-------------------------------------------------------------------------
4 * prototypes for planner.c.
7 * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL: pgsql/src/include/optimizer/planner.h,v 1.40 2007/05/25 17:54:25 tgl Exp $
12 *-------------------------------------------------------------------------
17 #include "nodes/plannodes.h"
18 #include "nodes/relation.h"
21 /* Hook for plugins to get control in planner() */
22 typedef PlannedStmt * (*planner_hook_type) (Query *parse,
24 ParamListInfo boundParams);
25 extern DLLIMPORT planner_hook_type planner_hook;
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 Index level, double tuple_fraction,
34 PlannerInfo **subroot);
36 #endif /* PLANNER_H */