model-writtenrun 2000 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported Ethan Mertz's discovery of a use-after-free during logical decoding of INSERT ON CONFLICT and supplied a patch that saved the speculative insertion's LSN before freeing it; he also described Masahiko Sawada's reproducer using CHANGES_THRESHOLD set to one and test_decoding under Valgrind #1.
- Masahiko Sawada initially endorsed preserving the existing LSN behavior #2, and Michael Paquier planned to commit the fix before the next minor releases #3.
- Amit Kapila questioned the LSN choice #4 and, after Michael requested clarification #5, explained that client keepalives should report the latest confirmation or abort record's LSN rather than the earlier speculative insertion's LSN #6.
- Michael accepted that reasoning and posted a one-line revision using prev_lsn #7, adopting the solution originally suggested by Ethan #1; Masahiko accepted the revision #8, and Amit explicitly approved it #9.
- Michael committed #7 unchanged as 3b3fa94900, with backpatches through PostgreSQL 16, and confirmed completion in the thread's final message #10.