model-writtenrun 8926 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dilip Kumar reported an assertion failure found by Vignesh C and supplied a patch checking the current subtransaction count instead of the persistent overflow flag; he initially lacked a reliable reproducer because entering the group-update path depends on lock contention #1.
- Andres Freund questioned whether previously overflowed transactions could safely use group updates and identified a redundant assertion, while Amit Kapila explained that the subtransaction cache and existing memcmp check protected the operation and supported removing the redundant check #2 #4.
- Amit reproduced the failure using reduced subtransaction limits and debugger-controlled lock contention, then posted a revision retaining Dilip’s fix and removing the redundant assertion and its comment #5.
- Alvaro Herrera questioned the placement of the static assertion and suggested moving it near the PGPROC limit definition; Amit deferred that cleanup until the prerequisite static-assertion work landed, and Alvaro raised no objection to the immediate removal #6 #7 #8.
- Robert Haas suggested what the removed assertion might originally have intended to check, but Amit explained that the static assertion and surrounding condition already implied that check, and Robert did not insist on retaining it #9 #10 #11.
- Amit announced plans to commit and backpatch through PostgreSQL 10, then corrected the affected release to PostgreSQL 11 and confirmed completion; af3290f5e7 landed the code from #5 unchanged, leaving the proposed static-assertion relocation outside this fix #12 #13.