>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> Of course there is one good solution, which is to have query_planner
>> take a set of acceptable output sort orders rather than just a
>> single one.
>> How wild an idea is this?
Tom> It's been on my to-do list for years, see e.g.
Tom> https://postgr.es/m/5702.1480896563@sss.pgh.pa.us
Tom> The idea wouldn't have been very helpful before the upper planner
Tom> got path-ified, but now the only stumbling block is a shortage of
Tom> round tuits.
I'll take a shot at it, then.
--
Andrew (irc:RhodiumToad)