remove unnecessary 'distribution' variable from grouping_planner()
authorTomas Vondra <[email protected]>
Tue, 10 Jan 2017 17:56:39 +0000 (18:56 +0100)
committerTomas Vondra <[email protected]>
Tue, 10 Jan 2017 17:56:39 +0000 (18:56 +0100)
The compiler complains about this being unused, and we can pass this
in the Path anyway I believe, so get rid of it.

src/backend/optimizer/plan/planner.c

index 4a11d5a29b781fc0caac61e73ec024e353fb6c8c..10a70035d604eb5dc0f7964782dd616ca91774e6 100644 (file)
@@ -1580,9 +1580,6 @@ grouping_planner(PlannerInfo *root, bool inheritance_update,
        RelOptInfo *final_rel;
        ListCell   *lc;
 
-       /* distribution of the result_plan */
-       Distribution *distribution = NULL;
-
        /* Tweak caller-supplied tuple_fraction if have LIMIT/OFFSET */
        if (parse->limitCount || parse->limitOffset)
        {