PostgreSQL Source Code  git master
subselect.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * subselect.h
4  * Planning routines for subselects.
5  *
6  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/optimizer/subselect.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef SUBSELECT_H
14 #define SUBSELECT_H
15 
16 #include "nodes/pathnodes.h"
17 #include "nodes/plannodes.h"
18 
19 extern void SS_process_ctes(PlannerInfo *root);
21  SubLink *sublink,
22  Relids available_rels);
24  SubLink *sublink,
25  bool under_not,
26  Relids available_rels);
27 extern Node *SS_replace_correlation_vars(PlannerInfo *root, Node *expr);
28 extern Node *SS_process_sublinks(PlannerInfo *root, Node *expr, bool isQual);
29 extern void SS_identify_outer_params(PlannerInfo *root);
30 extern void SS_charge_for_initplans(PlannerInfo *root, RelOptInfo *final_rel);
31 extern void SS_attach_initplans(PlannerInfo *root, Plan *plan);
32 extern void SS_finalize_plan(PlannerInfo *root, Plan *plan);
34  Oid resulttype, int32 resulttypmod,
35  Oid resultcollation);
36 extern void SS_make_initplan_from_plan(PlannerInfo *root,
37  PlannerInfo *subroot, Plan *plan,
38  Param *prm);
39 
40 #endif /* SUBSELECT_H */
JoinExpr * convert_ANY_sublink_to_join(PlannerInfo *root, SubLink *sublink, Relids available_rels)
Definition: subselect.c:1213
Definition: nodes.h:529
unsigned int Oid
Definition: postgres_ext.h:31
signed int int32
Definition: c.h:362
void SS_charge_for_initplans(PlannerInfo *root, RelOptInfo *final_rel)
Definition: subselect.c:2064
void SS_identify_outer_params(PlannerInfo *root)
Definition: subselect.c:2002
JoinExpr * convert_EXISTS_sublink_to_join(PlannerInfo *root, SubLink *sublink, bool under_not, Relids available_rels)
Definition: subselect.c:1320
void SS_process_ctes(PlannerInfo *root)
Definition: subselect.c:831
void SS_make_initplan_from_plan(PlannerInfo *root, PlannerInfo *subroot, Plan *plan, Param *prm)
Definition: subselect.c:2893
Node * SS_replace_correlation_vars(PlannerInfo *root, Node *expr)
Definition: subselect.c:1810
void SS_attach_initplans(PlannerInfo *root, Plan *plan)
Definition: subselect.c:2121
Node * SS_process_sublinks(PlannerInfo *root, Node *expr, bool isQual)
Definition: subselect.c:1855
Param * SS_make_initplan_output_param(PlannerInfo *root, Oid resulttype, int32 resulttypmod, Oid resultcollation)
Definition: subselect.c:2877
void SS_finalize_plan(PlannerInfo *root, Plan *plan)
Definition: subselect.c:2136