model-writtenrun 7778 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Julien Rouhaud reported an assertion failure from a combination of FOR UPDATE and stored-function calls, supplying a reproducer and asking whether tuple-header construction or the assertion was wrong #1.
- Alvaro Herrera initially suspected compute_new_xmax_infomask, Mahendra Singh Thalor reproduced the failure and identified RELEASE SAVEPOINT as necessary, and Julien warned that existing data could consequently receive false corruption reports #2 #3 #4 #5.
- Dilip Kumar traced how multixact FOR UPDATE locking sets both bits, despite comments suggesting otherwise; Alvaro then corrected his initial interpretation, explaining that HEAP_KEYS_UPDATED also distinguishes locks permitting future key changes and recommending removal of the assertion and matching amcheck check #6 #8 #9.
- Julien submitted the fix with an amcheck regression scenario and an additional verification after VACUUM, preferring documentation clarification over renaming the flag #10.
- Mahendra confirmed the patch fixed the problem and requested the documentation change; Julien added it, then adopted Alvaro's clearer explanation that the flag covers SELECT FOR UPDATE, key-changing UPDATE, and DELETE #12 #13 #14 #15.
- Julien remained concerned that later processing could clear the flag, and Alvaro questioned whether TOAST handling restored it correctly; this concern produced no further attached revision #15 #16.
- Alvaro committed the final patch unchanged as 8deb6b38dc, applying the code fix on master and backpatching the documentation to supported branches; the thread ended with the fix landed and his request for a reproducer showing that compute_new_xmax_infomask failed to restore the flag still open #17.