@@ -348,12 +348,12 @@ try_nestloop_path(PlannerInfo *root,
348348 */
349349static void
350350try_partial_nestloop_path (PlannerInfo * root ,
351- RelOptInfo * joinrel ,
352- Path * outer_path ,
353- Path * inner_path ,
354- List * pathkeys ,
355- JoinType jointype ,
356- JoinPathExtraData * extra )
351+ RelOptInfo * joinrel ,
352+ Path * outer_path ,
353+ Path * inner_path ,
354+ List * pathkeys ,
355+ JoinType jointype ,
356+ JoinPathExtraData * extra )
357357{
358358JoinCostWorkspace workspace ;
359359
@@ -373,8 +373,8 @@ try_partial_nestloop_path(PlannerInfo *root,
373373}
374374
375375/*
376- * Before creating a path, get a quick lower bound on what it is likely
377- *to cost. Bail out right away if it looks terrible.
376+ * Before creating a path, get a quick lower bound on what it is likely to
377+ * cost. Bail out right away if it looks terrible.
378378 */
379379initial_cost_nestloop (root ,& workspace ,jointype ,
380380outer_path ,inner_path ,
@@ -384,17 +384,17 @@ try_partial_nestloop_path(PlannerInfo *root,
384384
385385/* Might be good enough to be worth trying, so let's try it. */
386386add_partial_path (joinrel , (Path * )
387- create_nestloop_path (root ,
388- joinrel ,
389- jointype ,
390- & workspace ,
391- extra -> sjinfo ,
392- & extra -> semifactors ,
393- outer_path ,
394- inner_path ,
395- extra -> restrictlist ,
396- pathkeys ,
397- NULL ));
387+ create_nestloop_path (root ,
388+ joinrel ,
389+ jointype ,
390+ & workspace ,
391+ extra -> sjinfo ,
392+ & extra -> semifactors ,
393+ outer_path ,
394+ inner_path ,
395+ extra -> restrictlist ,
396+ pathkeys ,
397+ NULL ));
398398}
399399
400400/*
@@ -571,8 +571,8 @@ try_partial_hashjoin_path(PlannerInfo *root,
571571}
572572
573573/*
574- * Before creating a path, get a quick lower bound on what it is likely
575- *to cost. Bail out right away if it looks terrible.
574+ * Before creating a path, get a quick lower bound on what it is likely to
575+ * cost. Bail out right away if it looks terrible.
576576 */
577577initial_cost_hashjoin (root ,& workspace ,jointype ,hashclauses ,
578578outer_path ,inner_path ,
@@ -582,17 +582,17 @@ try_partial_hashjoin_path(PlannerInfo *root,
582582
583583/* Might be good enough to be worth trying, so let's try it. */
584584add_partial_path (joinrel , (Path * )
585- create_hashjoin_path (root ,
586- joinrel ,
587- jointype ,
588- & workspace ,
589- extra -> sjinfo ,
590- & extra -> semifactors ,
591- outer_path ,
592- inner_path ,
593- extra -> restrictlist ,
594- NULL ,
595- hashclauses ));
585+ create_hashjoin_path (root ,
586+ joinrel ,
587+ jointype ,
588+ & workspace ,
589+ extra -> sjinfo ,
590+ & extra -> semifactors ,
591+ outer_path ,
592+ inner_path ,
593+ extra -> restrictlist ,
594+ NULL ,
595+ hashclauses ));
596596}
597597
598598/*
@@ -1189,11 +1189,11 @@ match_unsorted_outer(PlannerInfo *root,
11891189}
11901190
11911191/*
1192- * If the joinrel is parallel-safe and the join type supports nested loops,
1193- * we may be able to consider a partial nestloop plan. However, we can't
1194- * handle JOIN_UNIQUE_OUTER, because the outer path will be partial, and
1195- * therefore we won't be able to properly guarantee uniqueness. Nor can
1196- * we handle extra_lateral_rels, since partial paths must not be
1192+ * If the joinrel is parallel-safe and the join type supports nested
1193+ *loops, we may be able to consider a partial nestloop plan. However, we
1194+ *can't handle JOIN_UNIQUE_OUTER, because the outer path will be partial,
1195+ *and therefore we won't be able to properly guarantee uniqueness. Nor
1196+ *can we handle extra_lateral_rels, since partial paths must not be
11971197 * parameterized.
11981198 */
11991199if (joinrel -> consider_parallel && nestjoinOK &&
@@ -1235,10 +1235,10 @@ consider_parallel_nestloop(PlannerInfo *root,
12351235outerpath -> pathkeys );
12361236
12371237/*
1238- * Try the cheapest parameterized paths; only those which will
1239- *produce an unparameterized path when joined to this outerrel
1240- *will survive try_partial_nestloop_path. The cheapest
1241- *unparameterized path is also in this list.
1238+ * Try the cheapest parameterized paths; only those which will produce
1239+ * an unparameterized path when joined to this outerrel will survive
1240+ * try_partial_nestloop_path. The cheapest unparameterized path is
1241+ * also in this list.
12421242 */
12431243foreach (lc2 ,innerrel -> cheapest_parameterized_paths )
12441244{
@@ -1250,16 +1250,17 @@ consider_parallel_nestloop(PlannerInfo *root,
12501250
12511251/*
12521252 * Like match_unsorted_outer, we only consider a single nestloop
1253- * path when the jointype is JOIN_UNIQUE_INNER. But we have to scan
1254- * cheapest_parameterized_paths to find the one we want to consider,
1255- * because cheapest_total_path might not be parallel-safe.
1253+ * path when the jointype is JOIN_UNIQUE_INNER. But we have to
1254+ * scan cheapest_parameterized_paths to find the one we want to
1255+ * consider, because cheapest_total_path might not be
1256+ * parallel-safe.
12561257 */
12571258if (jointype == JOIN_UNIQUE_INNER )
12581259{
12591260if (!bms_is_empty (PATH_REQ_OUTER (innerpath )))
12601261continue ;
12611262innerpath = (Path * )create_unique_path (root ,innerrel ,
1262- innerpath ,extra -> sjinfo );
1263+ innerpath ,extra -> sjinfo );
12631264Assert (innerpath );
12641265}
12651266
@@ -1456,8 +1457,8 @@ hash_inner_and_outer(PlannerInfo *root,
14561457outerrel -> partial_pathlist != NIL &&
14571458bms_is_empty (joinrel -> lateral_relids ))
14581459{
1459- Path * cheapest_partial_outer ;
1460- Path * cheapest_safe_inner = NULL ;
1460+ Path * cheapest_partial_outer ;
1461+ Path * cheapest_safe_inner = NULL ;
14611462
14621463cheapest_partial_outer =
14631464(Path * )linitial (outerrel -> partial_pathlist );