projects
/
postgres-xl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
923f4c0
)
Do not use RemoteSubplan for simple Result plan which can be evaluated on any
author
Pavan Deolasee
<
[email protected]
>
Wed, 9 Dec 2015 10:01:36 +0000
(15:31 +0530)
committer
Pavan Deolasee
<
[email protected]
>
Wed, 9 Dec 2015 10:01:36 +0000
(15:31 +0530)
node
This should reduce connections for a single INSERT statements
src/backend/optimizer/plan/planner.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/optimizer/plan/planner.c
b/src/backend/optimizer/plan/planner.c
index 06cd9703c723dcbd48cd38c783583b5f0b46660e..40201918a277bad5eaf649ab214ee773fa15ebc2 100644
(file)
--- a/
src/backend/optimizer/plan/planner.c
+++ b/
src/backend/optimizer/plan/planner.c
@@
-2713,7
+2713,9
@@
grouping_planner(PlannerInfo *root, double tuple_fraction)
distributePlan->distributionNodes, nodenum);
bms_free(tmpset);
}
- else
+ else if (!(IsA(result_plan, Result) && result_plan->lefttree ==
+ NULL &&
+ bms_num_members(root->distribution->restrictNodes) == 1))
result_plan = (Plan *) make_remotesubplan(root,
result_plan,
root->distribution,