PostgreSQL Source Code  git master
prep.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * prep.h
4  * prototypes for files in optimizer/prep/
5  *
6  *
7  * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/optimizer/prep.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef PREP_H
15 #define PREP_H
16 
17 #include "nodes/pathnodes.h"
18 #include "nodes/plannodes.h"
19 
20 
21 /*
22  * prototypes for prepjointree.c
23  */
24 extern void replace_empty_jointree(Query *parse);
25 extern void pull_up_sublinks(PlannerInfo *root);
26 extern void preprocess_function_rtes(PlannerInfo *root);
27 extern void pull_up_subqueries(PlannerInfo *root);
28 extern void flatten_simple_union_all(PlannerInfo *root);
29 extern void reduce_outer_joins(PlannerInfo *root);
30 extern void remove_useless_result_rtes(PlannerInfo *root);
31 extern Relids get_relids_in_jointree(Node *jtnode, bool include_joins);
32 extern Relids get_relids_for_join(Query *query, int joinrelid);
33 
34 /*
35  * prototypes for preptlist.c
36  */
37 extern void preprocess_targetlist(PlannerInfo *root);
38 
40 
41 extern PlanRowMark *get_plan_rowmark(List *rowmarks, Index rtindex);
42 
43 /*
44  * prototypes for prepagg.c
45  */
46 extern void get_agg_clause_costs(PlannerInfo *root, AggSplit aggsplit,
47  AggClauseCosts *agg_costs);
48 extern void preprocess_aggrefs(PlannerInfo *root, Node *clause);
49 
50 /*
51  * prototypes for prepunion.c
52  */
54 
55 
56 #endif /* PREP_H */
void flatten_simple_union_all(PlannerInfo *root)
void pull_up_subqueries(PlannerInfo *root)
Definition: prepjointree.c:680
void pull_up_sublinks(PlannerInfo *root)
Definition: prepjointree.c:208
Definition: nodes.h:536
void reduce_outer_joins(PlannerInfo *root)
void replace_empty_jointree(Query *parse)
Definition: prepjointree.c:150
void preprocess_function_rtes(PlannerInfo *root)
Definition: prepjointree.c:639
Relids get_relids_for_join(Query *query, int joinrelid)
void preprocess_targetlist(PlannerInfo *root)
Definition: preptlist.c:62
List * extract_update_targetlist_colnos(List *tlist)
Definition: preptlist.c:261
unsigned int Index
Definition: c.h:549
Relids get_relids_in_jointree(Node *jtnode, bool include_joins)
void preprocess_aggrefs(PlannerInfo *root, Node *clause)
Definition: prepagg.c:111
AggSplit
Definition: nodes.h:788
void get_agg_clause_costs(PlannerInfo *root, AggSplit aggsplit, AggClauseCosts *agg_costs)
Definition: prepagg.c:538
PlanRowMark * get_plan_rowmark(List *rowmarks, Index rtindex)
Definition: preptlist.c:425
void remove_useless_result_rtes(PlannerInfo *root)
RelOptInfo * plan_set_operations(PlannerInfo *root)
Definition: prepunion.c:103
Definition: pg_list.h:50
static struct subre * parse(struct vars *, int, int, struct state *, struct state *)
Definition: regcomp.c:673