model-writtenrun 1123 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- John Naylor proposed radix sorting the leading integer-like datum in #1, following an off-list suggestion from Peter Geoghegan, with NULL partitioning, normalized keys, and quicksort fallbacks for small partitions and additional keys.
- Chao Li initially reported performance regressions in #2, but testing without assertions showed comparable low-cardinality performance and a substantial high-cardinality improvement in #9; he also found an assignment mistakenly used in an assertion in #5.
- John Naylor simplified the implementation across #10 and #11, removing the intermediate American flag sort, adding a conditioned-key quicksort fallback, then removing counting-loop unrolling and lowering the fallback threshold after benchmarks.
- In #12, John Naylor replaced storage shared with the NULL flag with a cached byte in existing SortTuple padding, avoiding restoration hazards, and adopted branchless NULL partitioning with ordinary quicksort fallback.
- The same submission #12 separated common-prefix detection and provisional test fixes, including additional ordering keys intended to address unexplained pg_upgrade regression-output differences.
- David Geier proposed a reusable radix-sort abstraction in #13, but John Naylor deferred broader generalization beyond the PG19 cycle in #16 because the tuple-sorting design was still evolving; David accepted that sequencing in #17.
- Systematic benchmarks in #18 showed broad gains but identified presorted input and an adversarial mixture of zeros and signed values as cases needing attention.
- Álvaro Herrera requested the upstream license notice in #19, and Chengpeng Yan tested and reviewed the series in #21, suggesting direct partition-state checks, OR-based prefix accumulation, and an identical-key shortcut; John incorporated these changes in #24.
- Chao Li reviewed the revised implementation in #25 and supplied a shared-buffer experiment in #27, but John rejected it in #28 because recursive calls overwrote necessary state.
- Chao Li supplied two further experimental deltas in #30, reporting that chained permutation was slower and proposing a small partition-check optimization; John explained the original algorithm's pipelining advantage in #31, and neither delta appears in the subsequent main implementation.
- After the gap to January, John Naylor returned with #33, adding a presorted check, removing the testing GUC and old integer quicksort specializations, and reducing the provisional regression changes while retaining the radix algorithm.
- The cleanup continued in #35, incorporating zengman's leftover-declaration report from #34, adding interrupt checks, and separating optional trace-message and quicksort-verification changes; zengman and ChangAo Chen supplied further review in #36 and #37.
- John Naylor committed the main patch from #35 as ef3c3cf6d0, incorporating review edits, renaming the radix entry and recursive functions, and moving the presorted check to the non-NULL partition, as explained in #40.
- The remainder in #40 combined prefix detection with the presorted scan, but John Naylor replaced that approach in #41 with detection during every recursive counting pass after experiments showed better handling of mixed-sign inputs.
- In #41, John Naylor dropped the optional trace-message changes as offering little value and left broader quicksort-order assertions undecided.
- ChangAo Chen approved the redesigned prefix patch in #42, and John Naylor committed #41 unchanged as f6bd9f0fe2, confirming the push in #43.
- After that landing, ChangAo Chen proposed a recursion-progress assertion in #44, and John Naylor proposed an explicit Datum conversion in #45; both changes and comment corrections landed as ca9807dfec.
- The final message #47 confirms the follow-up cleanup was committed, leaving the core radix sort and recursive prefix optimization landed, with no recorded resolution of the optional broader quicksort verification.