]> granicus.if.org Git - postgresql/blob - src/include/optimizer/placeholder.h
33f9a2139928f29a29138c94aafb5a641b4ce031
[postgresql] / src / include / optimizer / placeholder.h
1 /*-------------------------------------------------------------------------
2  *
3  * placeholder.h
4  *        prototypes for optimizer/util/placeholder.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/placeholder.h,v 1.3 2009/06/11 14:49:11 momjian Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef PLACEHOLDER_H
15 #define PLACEHOLDER_H
16
17 #include "nodes/relation.h"
18
19
20 extern PlaceHolderVar *make_placeholder_expr(PlannerInfo *root, Expr *expr,
21                                           Relids phrels);
22 extern PlaceHolderInfo *find_placeholder_info(PlannerInfo *root,
23                                           PlaceHolderVar *phv);
24 extern void fix_placeholder_eval_levels(PlannerInfo *root);
25 extern void add_placeholders_to_joinrel(PlannerInfo *root,
26                                                         RelOptInfo *joinrel);
27
28 #endif   /* PLACEHOLDER_H */