remove the comment about need for Sort in create_distinct_paths
authorTomas Vondra <[email protected]>
Sun, 22 Jan 2017 17:52:20 +0000 (18:52 +0100)
committerTomas 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

index aec4939241aceb836eb20bf63e4cb7e93329c1e8..2f1dc845b8dbbfa8d433d2ddd4e28bbfe0246043 100644 (file)
@@ -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,