]> granicus.if.org Git - postgresql/blob - src/include/optimizer/prep.h
Implementation of UNIONs.
[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.10 1997/12/24 06:06:58 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 *cnfify(Expr *qual, bool removeAndFlag);
23
24 /*
25  * prototypes for preptlist.h
26  */
27 extern List *preprocess_targetlist(List *tlist, int command_type,
28                                           Index result_relation, List *range_table);
29
30 /*
31  * prototypes for prepunion.h
32  */
33 typedef enum UnionFlag
34 {
35         INHERITS_FLAG, UNION_FLAG, VERSION_FLAG
36 } UnionFlag;
37
38 extern List *find_all_inheritors(List *unexamined_relids,
39                                         List *examined_relids);
40 extern int      first_matching_rt_entry(List *rangetable, UnionFlag flag);
41 extern Append *plan_union_queries(Index rt_index, Query *parse,
42                                    UnionFlag flag);
43
44 #endif                                                  /* PREP_H */