• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#objective-cqt誰得windowscocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

firtst release


コミットメタ情報

リビジョン306be8ac7ac24591a96abd8415881804e1dfd31f (tree)
日時2020-10-29 21:20:30
作者Kyotaro Horiguchi <horikyoga.ntt@gmai...>
コミッター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.

変更サマリ

差分

--- a/core.c
+++ b/core.c
@@ -3,7 +3,6 @@
33 * core.c
44 * Routines copied from PostgreSQL core distribution.
55 *
6-
76 * The main purpose of this files is having access to static functions in core.
87 * Another purpose is tweaking functions behavior by replacing part of them by
98 * macro definitions. See at the end of pg_hint_plan.c for details. Anyway,
@@ -13,15 +12,6 @@
1312 *
1413 * src/backend/optimizer/path/allpaths.c
1514 *
16- * static functions:
17- * set_plain_rel_pathlist()
18- * create_plain_partial_paths()
19- * set_append_rel_pathlist()
20- * add_paths_to_append_rel()
21- * generate_mergeappend_paths()
22- * get_cheapest_parameterized_child_path()
23- * accumulate_append_subpath()
24- *
2515 * public functions:
2616 * standard_join_search(): This funcion is not static. The reason for
2717 * including this function is make_rels_by_clause_joins. In order to
@@ -29,6 +19,14 @@
2919 * change the behavior of make_join_rel, which is called under this
3020 * function.
3121 *
22+ * static functions:
23+ * set_plain_rel_pathlist()
24+ * create_plain_partial_paths()
25+ * set_append_rel_pathlist()
26+ * add_paths_to_append_rel()
27+ * generate_mergeappend_paths()
28+ * get_cheapest_parameterized_child_path()
29+ *
3230 * src/backend/optimizer/path/joinrels.c
3331 *
3432 * public functions:
@@ -43,13 +41,15 @@
4341 * mark_dummy_rel()
4442 * restriction_is_constant_false()
4543 *
46- *
4744 * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
4845 * Portions Copyright (c) 1994, Regents of the University of California
4946 *
5047 *-------------------------------------------------------------------------
5148 */
5249
50+static void populate_joinrel_with_paths(PlannerInfo *root, RelOptInfo *rel1,
51+ RelOptInfo *rel2, RelOptInfo *joinrel,
52+ SpecialJoinInfo *sjinfo, List *restrictlist);
5353
5454 /*
5555 * set_plain_rel_pathlist
@@ -164,6 +164,7 @@ set_append_rel_pathlist(PlannerInfo *root, RelOptInfo *rel,
164164 add_paths_to_append_rel(root, rel, live_childrels);
165165 }
166166
167+
167168 /*
168169 * add_paths_to_append_rel
169170 * Generate paths for given "append" relation given the set of non-dummy
--- a/make_join_rel.c
+++ b/make_join_rel.c
@@ -5,7 +5,12 @@
55 * modifications.
66 *
77 * src/backend/optimizer/path/joinrels.c
8+ *
9+ * This file contains the following functions from corresponding files.
10+ *
11+ * static functions:
812 * make_join_rel()
13+ * populate_joinrel_with_paths()
914 *
1015 * Portions Copyright (c) 2013-2020, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
1116 * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
@@ -14,10 +19,6 @@
1419 *-------------------------------------------------------------------------
1520 */
1621
17-static void populate_joinrel_with_paths(PlannerInfo *root, RelOptInfo *rel1,
18- RelOptInfo *rel2, RelOptInfo *joinrel,
19- SpecialJoinInfo *sjinfo,
20- List *restrictlist);
2122 /*
2223 * adjust_rows: tweak estimated row numbers according to the hint.
2324 */
@@ -48,6 +49,7 @@ adjust_rows(double rows, RowsHint *hint)
4849 return result;
4950 }
5051
52+
5153 /*
5254 * make_join_rel
5355 * Find or create a join RelOptInfo that represents the join of
@@ -160,7 +162,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
160162 /*
161163 * If the rows_hint's target relids is not a subset of both of
162164 * component rels and is a subset of this joinrel, ths hint's
163- * targets spread over both component rels. This means that
165+ * targets spread over both component rels. This menas that
164166 * this hint has been never applied so far and this joinrel is
165167 * the first (and only) chance to fire in current join tree.
166168 * Only the multiplication hint has the cumulative nature so we
@@ -174,7 +176,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
174176 {
175177 /*
176178 * If a hint just for me is found, no other adjust method is
177- * useless, but this cannot be more than twice becuase this joinrel
179+ * useles, but this cannot be more than twice becuase this joinrel
178180 * is already adjusted by this hint.
179181 */
180182 if (justforme->base.state == HINT_STATE_NOTUSED)
@@ -221,6 +223,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
221223 return joinrel;
222224 }
223225
226+
224227 /*
225228 * populate_joinrel_with_paths
226229 * Add paths to the given joinrel for given pair of joining relations. The