From: Kyotaro Horiguchi Date: Thu, 29 Oct 2020 04:54:40 +0000 (+0900) Subject: Update core.c and make_join_rel.c. X-Git-Tag: REL13_1_3_7~5 X-Git-Url: http://git.osdn.net/view?p=pghintplan%2Fpg_hint_plan.git;a=commitdiff_plain;h=16ae4df51584c0858728838af7506c0b01a44f32 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. --- diff --git a/core.c b/core.c index 986ba97..fc7899e 100644 --- a/core.c +++ b/core.c @@ -12,11 +12,6 @@ * * 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 @@ -24,6 +19,11 @@ * 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,11 +36,10 @@ * join_is_legal() * has_join_restriction() * restriction_is_constant_false() - * update_child_rel_info() * build_child_join_sjinfo() * get_matching_part_pairs() * compute_partition_bounds() - * + * try_partitionwise_join() * * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California @@ -49,8 +48,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 @@ -266,6 +265,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 @@ -955,6 +955,7 @@ has_join_restriction(PlannerInfo *root, RelOptInfo *rel) return false; } + /* * restriction_is_constant_false --- is a restrictlist just FALSE? * @@ -1001,6 +1002,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 @@ -1043,6 +1045,7 @@ build_child_join_sjinfo(PlannerInfo *root, SpecialJoinInfo *parent_sjinfo, return sjinfo; } + /* * get_matching_part_pairs * Generate pairs of partitions to be joined from inputs diff --git a/make_join_rel.c b/make_join_rel.c index 9bc9e1c..287e7f1 100644 --- a/make_join_rel.c +++ b/make_join_rel.c @@ -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 @@ -156,7 +162,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2) /* * If the rows_hint's target relids is not a subset of both of * component rels and is a subset of this joinrel, ths hint's - * targets spread over both component rels. This means that + * targets spread over both component rels. This menas that * this hint has been never applied so far and this joinrel is * the first (and only) chance to fire in current join tree. * Only the multiplication hint has the cumulative nature so we @@ -170,7 +176,7 @@ make_join_rel(PlannerInfo *root, RelOptInfo *rel1, RelOptInfo *rel2) { /* * If a hint just for me is found, no other adjust method is - * useless, but this cannot be more than twice becuase this joinrel + * useles, but this cannot be more than twice becuase this joinrel * is already adjusted by this hint. */ if (justforme->base.state == HINT_STATE_NOTUSED) @@ -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