firtst release
Revision | 874bc3a8efc984ab9d73e7996b2dcd7ca949b4f0 (tree) |
---|---|
Time | 2020-10-29 20:30:12 |
Author | Kyotaro Horiguchi <horikyoga.ntt@gmai...> |
Commiter | Kyotaro Horiguchi |
Update core.c and make_join_rel.c.
From this version core.c and make_join_rel.c are automatically
generated from core code. Adjust them to auto-generated content.
@@ -12,11 +12,6 @@ | ||
12 | 12 | * |
13 | 13 | * src/backend/optimizer/path/allpaths.c |
14 | 14 | * |
15 | - * static functions: | |
16 | - * set_plain_rel_pathlist() | |
17 | - * add_paths_to_append_rel() | |
18 | - * try_partitionwise_join() | |
19 | - * | |
20 | 15 | * public functions: |
21 | 16 | * standard_join_search(): This funcion is not static. The reason for |
22 | 17 | * including this function is make_rels_by_clause_joins. In order to |
@@ -24,6 +19,11 @@ | ||
24 | 19 | * change the behavior of make_join_rel, which is called under this |
25 | 20 | * function. |
26 | 21 | * |
22 | + * static functions: | |
23 | + * set_plain_rel_pathlist() | |
24 | + * set_append_rel_pathlist() | |
25 | + * create_plain_partial_paths() | |
26 | + * | |
27 | 27 | * src/backend/optimizer/path/joinrels.c |
28 | 28 | * |
29 | 29 | * public functions: |
@@ -36,9 +36,8 @@ | ||
36 | 36 | * join_is_legal() |
37 | 37 | * has_join_restriction() |
38 | 38 | * restriction_is_constant_false() |
39 | - * update_child_rel_info() | |
40 | 39 | * build_child_join_sjinfo() |
41 | - * | |
40 | + * try_partitionwise_join() | |
42 | 41 | * |
43 | 42 | * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group |
44 | 43 | * Portions Copyright (c) 1994, Regents of the University of California |
@@ -47,8 +46,8 @@ | ||
47 | 46 | */ |
48 | 47 | |
49 | 48 | static void populate_joinrel_with_paths(PlannerInfo *root, RelOptInfo *rel1, |
50 | - RelOptInfo *rel2, RelOptInfo *joinrel, | |
51 | - SpecialJoinInfo *sjinfo, List *restrictlist); | |
49 | + RelOptInfo *rel2, RelOptInfo *joinrel, | |
50 | + SpecialJoinInfo *sjinfo, List *restrictlist); | |
52 | 51 | |
53 | 52 | /* |
54 | 53 | * set_plain_rel_pathlist |
@@ -264,6 +263,7 @@ standard_join_search(PlannerInfo *root, int levels_needed, List *initial_rels) | ||
264 | 263 | return rel; |
265 | 264 | } |
266 | 265 | |
266 | + | |
267 | 267 | /* |
268 | 268 | * create_plain_partial_paths |
269 | 269 | * Build partial access paths for parallel scan of a plain relation |
@@ -936,6 +936,7 @@ has_join_restriction(PlannerInfo *root, RelOptInfo *rel) | ||
936 | 936 | return false; |
937 | 937 | } |
938 | 938 | |
939 | + | |
939 | 940 | /* |
940 | 941 | * restriction_is_constant_false --- is a restrictlist just FALSE? |
941 | 942 | * |
@@ -982,6 +983,7 @@ restriction_is_constant_false(List *restrictlist, | ||
982 | 983 | return false; |
983 | 984 | } |
984 | 985 | |
986 | + | |
985 | 987 | /* |
986 | 988 | * Construct the SpecialJoinInfo for a child-join by translating |
987 | 989 | * SpecialJoinInfo for the join between parents. left_relids and right_relids |
@@ -1024,6 +1026,7 @@ build_child_join_sjinfo(PlannerInfo *root, SpecialJoinInfo *parent_sjinfo, | ||
1024 | 1026 | return sjinfo; |
1025 | 1027 | } |
1026 | 1028 | |
1029 | + | |
1027 | 1030 | /* |
1028 | 1031 | * Assess whether join between given two partitioned relations can be broken |
1029 | 1032 | * down into joins between matching partitions; a technique called |
@@ -5,7 +5,12 @@ | ||
5 | 5 | * modifications. |
6 | 6 | * |
7 | 7 | * src/backend/optimizer/path/joinrels.c |
8 | + * | |
9 | + * This file contains the following functions from corresponding files. | |
10 | + * | |
11 | + * static functions: | |
8 | 12 | * make_join_rel() |
13 | + * populate_joinrel_with_paths() | |
9 | 14 | * |
10 | 15 | * Portions Copyright (c) 2013-2020, NIPPON TELEGRAPH AND TELEPHONE CORPORATION |
11 | 16 | * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group |
@@ -44,6 +49,7 @@ adjust_rows(double rows, RowsHint *hint) | ||
44 | 49 | return result; |
45 | 50 | } |
46 | 51 | |
52 | + | |
47 | 53 | /* |
48 | 54 | * make_join_rel |
49 | 55 | * Find or create a join RelOptInfo that represents the join of |
@@ -217,6 +223,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2) | ||
217 | 223 | return joinrel; |
218 | 224 | } |
219 | 225 | |
226 | + | |
220 | 227 | /* |
221 | 228 | * populate_joinrel_with_paths |
222 | 229 | * Add paths to the given joinrel for given pair of joining relations. The |