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:
d38dc8a
)
remove the comment about need for Sort in create_distinct_paths
author
Tomas Vondra
<
[email protected]
>
Sun, 22 Jan 2017 17:52:20 +0000
(18:52 +0100)
committer
Tomas Vondra
<
[email protected]
>
Sun, 22 Jan 2017 17:52:20 +0000
(18:52 +0100)
The explicit Sort is not needed, because RemoteSubplan will take
care of that (using the built-in SimpleSort, if needed).
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 aec4939241aceb836eb20bf63e4cb7e93329c1e8..2f1dc845b8dbbfa8d433d2ddd4e28bbfe0246043 100644
(file)
--- a/
src/backend/optimizer/plan/planner.c
+++ b/
src/backend/optimizer/plan/planner.c
@@
-4960,8
+4960,6
@@
create_distinct_paths(PlannerInfo *root,
if (!grouping_distribution_match(root, parse, path, parse->distinctClause))
path = create_remotesubplan_path(root, path, NULL);
- /* XXX Maybe we need another sort here? */
-
add_path(distinct_rel, (Path *)
create_upper_unique_path(root, distinct_rel,
path,