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

Commit fd1eaf9

Browse files
author
Etsuro Fujita
committed
Fix testing of parallel-safety of scan/join target.
In commit 960df2a ("Correctly assess parallel-safety of tlists when SRFs are used."), the testing of scan/join target was done incorrectly, which caused a plan-quality problem. Backpatch through to v11 where the aforementioned commit went in, since this is a regression from v10. Author: Etsuro Fujita Reviewed-by: Robert Haas and Tom Lane Discussion: https://postgr.es/m/5C75303E.8020303@lab.ntt.co.jp
1 parent e7adda8 commit fd1eaf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/optimizer/plan/planner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ grouping_planner(PlannerInfo *root, bool inheritance_update,
19921992
{
19931993
scanjoin_target = make_group_input_target(root, final_target);
19941994
scanjoin_target_parallel_safe =
1995-
is_parallel_safe(root, (Node *) grouping_target->exprs);
1995+
is_parallel_safe(root, (Node *) scanjoin_target->exprs);
19961996
}
19971997
else
19981998
{

0 commit comments

Comments
 (0)