• R/O
  • HTTP
  • SSH
  • HTTPS

pg_hint_plan: Commit

firtst release


Commit MetaInfo

Revision874bc3a8efc984ab9d73e7996b2dcd7ca949b4f0 (tree)
Time2020-10-29 20:30:12
AuthorKyotaro Horiguchi <horikyoga.ntt@gmai...>
CommiterKyotaro Horiguchi

Log Message

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.

Change Summary

Incremental Difference

--- a/core.c
+++ b/core.c
@@ -12,11 +12,6 @@
1212 *
1313 * src/backend/optimizer/path/allpaths.c
1414 *
15- * static functions:
16- * set_plain_rel_pathlist()
17- * add_paths_to_append_rel()
18- * try_partitionwise_join()
19- *
2015 * public functions:
2116 * standard_join_search(): This funcion is not static. The reason for
2217 * including this function is make_rels_by_clause_joins. In order to
@@ -24,6 +19,11 @@
2419 * change the behavior of make_join_rel, which is called under this
2520 * function.
2621 *
22+ * static functions:
23+ * set_plain_rel_pathlist()
24+ * set_append_rel_pathlist()
25+ * create_plain_partial_paths()
26+ *
2727 * src/backend/optimizer/path/joinrels.c
2828 *
2929 * public functions:
@@ -36,9 +36,8 @@
3636 * join_is_legal()
3737 * has_join_restriction()
3838 * restriction_is_constant_false()
39- * update_child_rel_info()
4039 * build_child_join_sjinfo()
41- *
40+ * try_partitionwise_join()
4241 *
4342 * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
4443 * Portions Copyright (c) 1994, Regents of the University of California
@@ -47,8 +46,8 @@
4746 */
4847
4948 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);
5251
5352 /*
5453 * set_plain_rel_pathlist
@@ -264,6 +263,7 @@ standard_join_search(PlannerInfo *root, int levels_needed, List *initial_rels)
264263 return rel;
265264 }
266265
266+
267267 /*
268268 * create_plain_partial_paths
269269 * Build partial access paths for parallel scan of a plain relation
@@ -936,6 +936,7 @@ has_join_restriction(PlannerInfo *root, RelOptInfo *rel)
936936 return false;
937937 }
938938
939+
939940 /*
940941 * restriction_is_constant_false --- is a restrictlist just FALSE?
941942 *
@@ -982,6 +983,7 @@ restriction_is_constant_false(List *restrictlist,
982983 return false;
983984 }
984985
986+
985987 /*
986988 * Construct the SpecialJoinInfo for a child-join by translating
987989 * SpecialJoinInfo for the join between parents. left_relids and right_relids
@@ -1024,6 +1026,7 @@ build_child_join_sjinfo(PlannerInfo *root, SpecialJoinInfo *parent_sjinfo,
10241026 return sjinfo;
10251027 }
10261028
1029+
10271030 /*
10281031 * Assess whether join between given two partitioned relations can be broken
10291032 * down into joins between matching partitions; a technique called
--- 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
@@ -44,6 +49,7 @@ adjust_rows(double rows, RowsHint *hint)
4449 return result;
4550 }
4651
52+
4753 /*
4854 * make_join_rel
4955 * Find or create a join RelOptInfo that represents the join of
@@ -217,6 +223,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
217223 return joinrel;
218224 }
219225
226+
220227 /*
221228 * populate_joinrel_with_paths
222229 * Add paths to the given joinrel for given pair of joining relations. The
Show on old repository browser