OSDN Git Service

Update core.c and make_join_rel.c.
authorKyotaro Horiguchi <horikyoga.ntt@gmail.com>
Thu, 29 Oct 2020 04:15:25 +0000 (13:15 +0900)
committerKyotaro Horiguchi <horikyoga.ntt@gmail.com>
Thu, 29 Oct 2020 11:30:12 +0000 (20:30 +0900)
From this version core.c and make_join_rel.c are automatically
generated from core code.  Adjust them to auto-generated content.

core.c
make_join_rel.c

diff --git a/core.c b/core.c
index d809fe7..fa7baca 100644 (file)
--- a/core.c
+++ b/core.c
  *
  * src/backend/optimizer/path/allpaths.c
  *
- *     static functions:
- *        set_plain_rel_pathlist()
- *     add_paths_to_append_rel()
- *     try_partitionwise_join()
- *
  *  public functions:
  *     standard_join_search(): This funcion is not static. The reason for
  *        including this function is make_rels_by_clause_joins. In order to
  *        change the behavior of make_join_rel, which is called under this
  *        function.
  *
+ *     static functions:
+ *        set_plain_rel_pathlist()
+ *        set_append_rel_pathlist()
+ *        create_plain_partial_paths()
+ *
  * src/backend/optimizer/path/joinrels.c
  *
  *     public functions:
@@ -36,9 +36,8 @@
  *     join_is_legal()
  *     has_join_restriction()
  *     restriction_is_constant_false()
- *     update_child_rel_info()
  *     build_child_join_sjinfo()
- *
+ *     try_partitionwise_join()
  *
  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
@@ -47,8 +46,8 @@
  */
 
 static void populate_joinrel_with_paths(PlannerInfo *root, RelOptInfo *rel1,
-                                                               RelOptInfo *rel2, RelOptInfo *joinrel,
-                                                               SpecialJoinInfo *sjinfo, List *restrictlist);
+                                                                               RelOptInfo *rel2, RelOptInfo *joinrel,
+                                                                               SpecialJoinInfo *sjinfo, List *restrictlist);
 
 /*
  * set_plain_rel_pathlist
@@ -264,6 +263,7 @@ standard_join_search(PlannerInfo *root, int levels_needed, List *initial_rels)
        return rel;
 }
 
+
 /*
  * create_plain_partial_paths
  *       Build partial access paths for parallel scan of a plain relation
@@ -936,6 +936,7 @@ has_join_restriction(PlannerInfo *root, RelOptInfo *rel)
        return false;
 }
 
+
 /*
  * restriction_is_constant_false --- is a restrictlist just FALSE?
  *
@@ -982,6 +983,7 @@ restriction_is_constant_false(List *restrictlist,
        return false;
 }
 
+
 /*
  * Construct the SpecialJoinInfo for a child-join by translating
  * SpecialJoinInfo for the join between parents. left_relids and right_relids
@@ -1024,6 +1026,7 @@ build_child_join_sjinfo(PlannerInfo *root, SpecialJoinInfo *parent_sjinfo,
        return sjinfo;
 }
 
+
 /*
  * Assess whether join between given two partitioned relations can be broken
  * down into joins between matching partitions; a technique called
index 9bc9e1c..b5c0dc6 100644 (file)
@@ -5,7 +5,12 @@
  *       modifications.
  *
  * src/backend/optimizer/path/joinrels.c
+ *
+ * This file contains the following functions from corresponding files.
+ *
+ *     static functions:
  *     make_join_rel()
+ *     populate_joinrel_with_paths()
  *
  * Portions Copyright (c) 2013-2020, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
@@ -44,6 +49,7 @@ adjust_rows(double rows, RowsHint *hint)
        return result;
 }
 
+
 /*
  * make_join_rel
  *        Find or create a join RelOptInfo that represents the join of
@@ -217,6 +223,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2)
        return joinrel;
 }
 
+
 /*
  * populate_joinrel_with_paths
  *       Add paths to the given joinrel for given pair of joining relations. The