PostgreSQL Source Code  git master
appendinfo.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * appendinfo.h
4  * Routines for mapping expressions between append rel parent(s) and
5  * children
6  *
7  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/optimizer/appendinfo.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef APPENDINFO_H
15 #define APPENDINFO_H
16 
17 #include "nodes/pathnodes.h"
18 #include "utils/relcache.h"
19 
21  Relation childrel,
22  Index parentRTindex, Index childRTindex);
23 extern Node *adjust_appendrel_attrs(PlannerInfo *root, Node *node,
24  int nappinfos, AppendRelInfo **appinfos);
26  Relids child_relids,
27  Relids top_parent_relids);
28 extern Relids adjust_child_relids(Relids relids, int nappinfos,
29  AppendRelInfo **appinfos);
31  Relids child_relids, Relids top_parent_relids);
33  Relids relids, int *nappinfos);
34 
35 #endif /* APPENDINFO_H */
Node * adjust_appendrel_attrs_multilevel(PlannerInfo *root, Node *node, Relids child_relids, Relids top_parent_relids)
Definition: appendinfo.c:502
Definition: nodes.h:529
Node * adjust_appendrel_attrs(PlannerInfo *root, Node *node, int nappinfos, AppendRelInfo **appinfos)
Definition: appendinfo.c:194
Relids adjust_child_relids_multilevel(PlannerInfo *root, Relids relids, Relids child_relids, Relids top_parent_relids)
Definition: appendinfo.c:576
unsigned int Index
Definition: c.h:482
AppendRelInfo ** find_appinfos_by_relids(PlannerInfo *root, Relids relids, int *nappinfos)
Definition: appendinfo.c:728
Relids adjust_child_relids(Relids relids, int nappinfos, AppendRelInfo **appinfos)
Definition: appendinfo.c:541
AppendRelInfo * make_append_rel_info(Relation parentrel, Relation childrel, Index parentRTindex, Index childRTindex)
Definition: appendinfo.c:49