]> granicus.if.org Git - postgresql/blob - src/include/optimizer/prep.h
Remove archive stuff.
[postgresql] / src / include / optimizer / prep.h
1 /*-------------------------------------------------------------------------
2  *
3  * prep.h--
4  *        prototypes for files in prep.c
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: prep.h,v 1.7 1997/11/21 18:12:33 momjian Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PREP_H
14 #define PREP_H
15
16 #include <nodes/plannodes.h>
17 #include <nodes/parsenodes.h>
18
19 /*
20  * prototypes for prepqual.h
21  */
22 extern List *
23 preprocess_qualification(Expr *qual, List *tlist,
24                                                  List **existentialQualPtr);
25 extern List *cnfify(Expr *qual, bool removeAndFlag);
26
27 /*
28  * prototypes for preptlist.h
29  */
30 extern List *
31 preprocess_targetlist(List *tlist, int command_type,
32                                           Index result_relation, List *range_table);
33
34 /*
35  * prototypes for prepunion.h
36  */
37 typedef enum UnionFlag
38 {
39         INHERITS_FLAG, VERSION_FLAG
40 } UnionFlag;
41
42 extern List *
43 find_all_inheritors(List *unexamined_relids,
44                                         List *examined_relids);
45 extern int      first_matching_rt_entry(List *rangetable, UnionFlag flag);
46 extern Append *
47 plan_union_queries(Index rt_index, Query *parse,
48                                    UnionFlag flag);
49
50 #endif                                                  /* PREP_H */