]> granicus.if.org Git - postgresql/blob - src/include/optimizer/prep.h
Clean up th ecompile process by centralizing the include files
[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.1 1996/08/28 07:23:27 scrappy Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef PREP_H
14 #define PREP_H
15
16 #include "nodes/primnodes.h"
17 #include "nodes/plannodes.h"
18
19 /*
20  * prototypes for archive.h
21  */
22 extern void plan_archive(List *rt);
23 extern List *find_archive_rels(Oid relid);
24
25 /*
26  * prototypes for prepqual.h
27  */
28 extern List *preprocess_qualification(Expr *qual, List *tlist,
29                                       List **existentialQualPtr);
30 extern List *cnfify(Expr *qual, bool removeAndFlag);
31
32 /*
33  * prototypes for preptlist.h
34  */
35 extern List *preprocess_targetlist(List *tlist, int command_type,
36                           Index result_relation, List *range_table);
37
38 /*
39  * prototypes for prepunion.h
40  */
41 typedef enum UnionFlag {
42     INHERITS_FLAG, ARCHIVE_FLAG, VERSION_FLAG
43 } UnionFlag;
44
45 extern List *find_all_inheritors(List *unexamined_relids,
46                                  List *examined_relids);
47 extern int first_matching_rt_entry(List *rangetable, UnionFlag flag);
48 extern Append *plan_union_queries(Index rt_index, Query *parse,
49                                   UnionFlag flag); 
50
51 #endif  /* PREP_H */