]> granicus.if.org Git - postgresql/blob - src/include/optimizer/prep.h
c4b01263eb9c8923233fd625e1fd13cbdfbb0203
[postgresql] / src / include / optimizer / prep.h
1 /*-------------------------------------------------------------------------
2  *
3  * prep.h
4  *        prototypes for files in optimizer/prep/
5  *
6  *
7  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: prep.h,v 1.21 2000/01/26 05:58:21 momjian Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef PREP_H
15 #define PREP_H
16
17 #include "nodes/parsenodes.h"
18 #include "nodes/plannodes.h"
19
20 /*
21  * prototypes for prepqual.c
22  */
23 extern List *canonicalize_qual(Expr *qual, bool removeAndFlag);
24 extern List *cnfify(Expr *qual, bool removeAndFlag);
25 extern Expr *dnfify(Expr *qual);
26
27 /*
28  * prototypes for preptlist.c
29  */
30 extern List *preprocess_targetlist(List *tlist, int command_type,
31                                           Index result_relation, List *range_table);
32
33 /*
34  * prototypes for prepunion.c
35  */
36 extern List *find_all_inheritors(Oid parentrel);
37 extern int      first_inherit_rt_entry(List *rangetable);
38 extern Append *plan_union_queries(Query *parse);
39 extern Append *plan_inherit_queries(Query *parse, List *tlist, Index rt_index);
40
41 #endif   /* PREP_H */