Thread
-
Re: Support loser tree for k-way merge
cca5507 <cca5507@qq.com> — 2025-12-05T16:11:39Z
Hi, Can we support loser tree first and set the default value of enable_loser_tree to off? Anyway, I attach 2 patches. (pass check-world) v2-0001: support tuplesort_heap_build() which can build a valid heap in O(n), better than currently O(n log n). This also make beginmerge() more clear and simple when supporting loser tree. v2-0002: support the loser tree. -- Regards, ChangAo Chen