Repair crash with unsortable data in grouping sets.
Previously the code would generate incorrect results, assertion failures, or crashes if given unsortable (but hashable) columns in grouping sets. Handle by throwing an error instead. Report and patch by Pavan Deolasee (though I changed the error wording slightly); regression test by me. (This affects 9.5 only since the planner was refactored in 9.6.)
Showing
- src/backend/optimizer/plan/planner.c 5 additions, 0 deletionssrc/backend/optimizer/plan/planner.c
- src/test/regress/expected/groupingsets.out 7 additions, 0 deletionssrc/test/regress/expected/groupingsets.out
- src/test/regress/sql/groupingsets.sql 4 additions, 0 deletionssrc/test/regress/sql/groupingsets.sql
Loading
Please register or sign in to comment