pgsql: Repair logic for reordering grouping sets optimization.

2019-06-30 Thread Andrew Gierth
Repair logic for reordering grouping sets optimization. The logic in reorder_grouping_sets to order grouping set elements to match a pre-specified sort ordering was defective, resulting in unnecessary sort nodes (though the query output would still be correct). Repair, simplifying the code a littl

pgsql: Repair logic for reordering grouping sets optimization.

2019-06-30 Thread Andrew Gierth
Repair logic for reordering grouping sets optimization. The logic in reorder_grouping_sets to order grouping set elements to match a pre-specified sort ordering was defective, resulting in unnecessary sort nodes (though the query output would still be correct). Repair, simplifying the code a littl

pgsql: Repair logic for reordering grouping sets optimization.

2019-06-30 Thread Andrew Gierth
Repair logic for reordering grouping sets optimization. The logic in reorder_grouping_sets to order grouping set elements to match a pre-specified sort ordering was defective, resulting in unnecessary sort nodes (though the query output would still be correct). Repair, simplifying the code a littl

pgsql: Repair logic for reordering grouping sets optimization.

2019-06-30 Thread Andrew Gierth
Repair logic for reordering grouping sets optimization. The logic in reorder_grouping_sets to order grouping set elements to match a pre-specified sort ordering was defective, resulting in unnecessary sort nodes (though the query output would still be correct). Repair, simplifying the code a littl

pgsql: Repair logic for reordering grouping sets optimization.

2019-06-30 Thread Andrew Gierth
Repair logic for reordering grouping sets optimization. The logic in reorder_grouping_sets to order grouping set elements to match a pre-specified sort ordering was defective, resulting in unnecessary sort nodes (though the query output would still be correct). Repair, simplifying the code a littl