model-writtenrun 301 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis reported that reversing a scrollable cursor over a TID Range Scan could return only 12 of 32 expected rows, with a reproducer and diagnosis that scanning in both directions incorrectly depleted rs_numblocks #1.
- Ewan Young reproduced the failure on master and REL_19_STABLE and reported that randomized cursor testing found 135 mismatches in 1500 sequences before the fix and none afterward #2.
- Ewan Young submitted a patch that treats the scan limit as a fixed block window, checks its endpoint when scanning forward, and relies on the existing start-block check when scanning backward #2.
- David Rowley committed that patch with unchanged executable fix logic, clearer comments, and shorter regression output using additional MOVE operations 374522aa63.
- David Rowley closed the thread by confirming the push and adaptations for pre-v16 branches, explaining his comment and test revisions; the fix was backpatched through PostgreSQL 14 with no outstanding work identified #3 374522aa63.