postgresql/src/backend/optimizer/prep
Robert Haas c37267162e Fix generate_union_paths for non-sortable types.
The previous logic would fail to set groupList when
grouping_is_sortable() returned false, which could cause queries
to return wrong answers when some columns were not sortable.

David Rowley, reviewed by Heikki Linnakangas and Álvaro Herrera.
Reported by Hubert "depesz" Lubaczewski.

Discussion: http://postgr.es/m/Zktzf926vslR35Fv@depesz.com
Discussion: http://postgr.es/m/CAApHDvra=c8_zZT0J-TftByWN2Y+OJfnjNJFg4Dfdi2s+QzmqA@mail.gmail.com
2024-05-21 12:54:09 -04:00
..
Makefile Move per-agg and per-trans duplicate finding to the planner. 2020-11-24 10:45:00 +02:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
prepagg.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
prepjointree.c Fix query pullup issue with WindowClause runCondition 2024-05-05 12:54:46 +12:00
prepqual.c revert: Transform OR clauses to ANY expression 2024-04-10 02:28:09 +03:00
preptlist.c Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. 2024-03-30 10:00:26 +00:00
prepunion.c Fix generate_union_paths for non-sortable types. 2024-05-21 12:54:09 -04:00