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:
1155edc
)
comment about a place adding unnecessary top-level RemoteSubpans
author
Tomas Vondra
<
[email protected]
>
Fri, 20 Jan 2017 01:34:39 +0000
(
02:34
+0100)
committer
Tomas Vondra
<
[email protected]
>
Fri, 20 Jan 2017 01:34:39 +0000
(
02:34
+0100)
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 1bb2bcb1ce49728953a50ed194d48b07874220be..4cab3aea93aecbd91cc3adf66f55b4c601d891b2 100644
(file)
--- a/
src/backend/optimizer/plan/planner.c
+++ b/
src/backend/optimizer/plan/planner.c
@@
-330,6
+330,11
@@
standard_planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
#ifdef XCP
if (root->distribution)
{
+ /*
+ * FIXME, this keeps adding RemoteSubplan at a top of queries that
+ * don't really need it (e.g above a MergeAppend with subplans pushed
+ * to remote nodes). Not sure why it's happening, though ...
+ */
top_plan = (Plan *) make_remotesubplan(root, top_plan, NULL,
root->distribution,
root->query_pathkeys);