1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-05 23:56:58 +03:00
Tomas Vondra ea190ed14b Consider unsorted paths in generate_useful_gather_paths
generate_useful_gather_paths used to skip unsorted paths (without any
pathkeys), but that is unnecessary - the later code actually can handle
such paths just fine by adding a Sort node. This is clearly a thinko,
preventing construction of useful plans.

Backpatch to 13, where Incremental Sort was introduced.

Author: James Coleman
Reviewed-by: Tomas Vondra
Backpatch-through: 13
Discussion: https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com
2020-12-21 18:16:36 +01:00
..
2020-01-01 12:21:45 -05:00
2020-07-30 09:17:00 -07:00
2020-11-07 19:33:43 -03:00
2020-11-09 12:34:05 +01:00
2020-06-07 15:06:51 +02:00
2020-01-01 12:21:45 -05:00
2018-03-30 17:33:04 -07:00
2020-01-01 12:21:45 -05:00
2020-09-14 13:14:53 +02:00