pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Repair crash with unsortable grouping sets. 2+ messages / 1 participants [nested] [flat]
* pgsql: Repair crash with unsortable grouping sets. @ 2018-03-21 11:43 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Andrew Gierth @ 2018-03-21 11:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Repair crash with unsortable grouping sets. If there were multiple grouping sets, none of them empty, all of which were unsortable, then an oversight in consider_groupingsets_paths led to a null pointer dereference. Fix, and add a regression test for this case. Per report from Dang Minh Huong, though I didn't use their patch. Backpatch to 10.x where hashed grouping sets were added. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d2d79887eadff72c339a072ef693bb6016651d30 Modified Files -------------- src/backend/optimizer/plan/planner.c | 23 ++++++++++++++++++++++- src/test/regress/expected/groupingsets.out | 12 ++++++++++++ src/test/regress/sql/groupingsets.sql | 5 +++++ 3 files changed, 39 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Repair crash with unsortable grouping sets. @ 2018-03-21 11:43 Andrew Gierth <rhodiumtoad@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Andrew Gierth @ 2018-03-21 11:43 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Repair crash with unsortable grouping sets. If there were multiple grouping sets, none of them empty, all of which were unsortable, then an oversight in consider_groupingsets_paths led to a null pointer dereference. Fix, and add a regression test for this case. Per report from Dang Minh Huong, though I didn't use their patch. Backpatch to 10.x where hashed grouping sets were added. Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cf21c46495897cf3a59f2b1230b522a969a17bea Modified Files -------------- src/backend/optimizer/plan/planner.c | 23 ++++++++++++++++++++++- src/test/regress/expected/groupingsets.out | 12 ++++++++++++ src/test/regress/sql/groupingsets.sql | 5 +++++ 3 files changed, 39 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-03-21 11:43 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-03-21 11:43 pgsql: Repair crash with unsortable grouping sets. Andrew Gierth <rhodiumtoad@postgresql.org> 2018-03-21 11:43 pgsql: Repair crash with unsortable grouping sets. Andrew Gierth <rhodiumtoad@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox