Skip to content

Commit b5afdde

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 6f91815 commit b5afdde

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
@@ -1993,7 +1993,7 @@ grouping_planner(PlannerInfo *root, bool inheritance_update,
19931993
{
19941994
scanjoin_target = make_group_input_target(root, final_target);
19951995
scanjoin_target_parallel_safe =
1996-
is_parallel_safe(root, (Node *) grouping_target->exprs);
1996+
is_parallel_safe(root, (Node *) scanjoin_target->exprs);
19971997
}
19981998
else
19991999
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy