Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 271b678

Browse files
author
Amit Kapila
committed
Back-patch "Fix parallel hash join path search."
Back-patch commit 655393a to 9.6. This synchronizes the relavant code and helps in generating parallel paths in some cases in 9.6. This also helps in back-patch of future patches where we can get the same plan in all branches. Discussion: https://postgr.es/m/CAA4eK1+XK_875cJA1HPVpx9C7C8Fp7i4QzLJ17T3igfU2iadxQ@mail.gmail.com
1 parent fd4f2af commit 271b678

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/optimizer/path/joinpath.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,17 +1469,17 @@ hash_inner_and_outer(PlannerInfo *root,
14691469
/*
14701470
* Normally, given that the joinrel is parallel-safe, the cheapest
14711471
* total inner path will also be parallel-safe, but if not, we'll
1472-
* have to search cheapest_parameterized_paths for the cheapest
1473-
* safe, unparameterized inner path. If doing JOIN_UNIQUE_INNER,
1474-
* we can't use any alternative inner path.
1472+
* have to search for the cheapest safe, unparameterized inner
1473+
* path. If doing JOIN_UNIQUE_INNER, we can't use any alternative
1474+
* inner path.
14751475
*/
14761476
if (cheapest_total_inner->parallel_safe)
14771477
cheapest_safe_inner = cheapest_total_inner;
14781478
else if (save_jointype != JOIN_UNIQUE_INNER)
14791479
{
14801480
ListCell *lc;
14811481

1482-
foreach(lc, innerrel->cheapest_parameterized_paths)
1482+
foreach(lc, innerrel->pathlist)
14831483
{
14841484
Path *innerpath = (Path *) lfirst(lc);
14851485

0 commit comments

Comments
 (0)