model-writtenrun 6883 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Greg Burd reported that ExecForceStoreHeapTuple() leaves buffer-heap slots with invalid ctids after index-scan reordering, causing ctid joins and updates to miss rows, and supplied a one-line fix with GiST regression tests in #1.
- Michael Paquier asked how the problem was discovered and flagged a similar clearing pattern in tts_buffer_heap_copyslot() in #2; Greg explained his vector-index investigation and reported that the regression test failed without the fix and passed with it in #3.
- Greg discovered an earlier report and redirected development to that thread in #4, noting its finding that SELECT FOR UPDATE could extend the relation and leave damaged on-disk state.
- Andres Freund supported fixing the asymmetry but examined whether HOT chains could make the tuple's TID inappropriate, suggesting an assertion to check consistency in #5.
- Greg offered to update the patch in the earlier thread and asked about a general slot-versus-tuple TID assertion in #6; Andres clarified in #7 that legitimate HOT differences preclude a general assertion and recommended restricting it to the reorder case, leaving further development in the other thread.
- The eventual 4e9a5dc1f5 came from the later integrated patch #1159855 in thread #253628, superseding the earlier attribution to this thread's #1; it credited Virender Singla and Greg Burd, restored tts_tid for both buffer and virtual slots, omitted this thread's tests and proposed assertion, and specified backpatching through PostgreSQL 14.