model-writtenrun 8588 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier opened the thread by identifying contradictory comments and assertions about incremental sort's REWIND support, noting that an existing regression test already passed that flag #1.
- James Coleman explained that an earlier rescan rewrite had removed the REWIND assertion without updating the comment, and raised the choice between recalculating results and placing a materialize node above incremental sort #2 #3.
- James submitted two patches that explicitly rejected mark/restore and passed REWIND through to child nodes, choosing recalculation while requesting confirmation of the executor semantics #4.
- James extended the series with a one-line fix preserving node->bounded during rescans because ExecSetTupleBound runs before the rescan; clearing the flag discarded the bounded-sort optimization #5.
- With PostgreSQL 13 Beta 1 approaching, Jonathan S. Katz requested resolution of the open item, and Tomas Vondra committed to addressing it before the beta #7 #9.
- Tomas confirmed that REWIND is an efficiency hint that incremental sort may ignore while passing it to children, requested comment corrections, and identified the explicit mark/restore rejection as redundant; James agreed to omit it #11 #12.
- Tomas committed the flag-handling portion of the second submission as c442722648, revising comments and removing all child-node flag masking because REWIND should propagate and BACKWARD/MARK should never reach incremental sort #5 #13.
- The bounded-reset patch from the same submission landed unchanged as 9155b4be9a; Tomas's closing message confirmed that both fixes were pushed, leaving the redundant mark/restore patch intentionally omitted #5 #13.