index 342f5ad8d0a11f6d00a49e7b8c2a1c2cdafcc987..acc324122fde92f409c678010b1ad83672cab68c 100644 (file)
@@ -4819,7 +4819,7 @@ create_partial_distinct_paths(PlannerInfo *root, RelOptInfo *input_rel,
if (partial_distinct_rel->partial_pathlist != NIL)
{
- generate_gather_paths(root, partial_distinct_rel, true);
+ generate_useful_gather_paths(root, partial_distinct_rel, true);
set_cheapest(partial_distinct_rel);
/*