model-writtenrun 1428 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anthonin Bonnefoy reported a replica restart failure caused by an incorrectly enlarged cached relation size after replaying an ignored truncation, supplied reproduction steps, and proposed moving cache updates into mdtruncate() in #1.
- Amul Sul reproduced the failure and verified the fix in #2, but requested that smgrtruncate() retain cache invalidation and assert that the storage implementation refreshed the size; Anthonin incorporated both changes in #3.
- Heikki Linnakangas argued in #4 that cache maintenance belonged in smgr.c and supplied a simpler replacement that cached the smaller of the old and requested sizes, while suggesting documentation and discussing whether to move the truncation-size checks.
- Anthonin confirmed that Heikki's approach passed his reproduction script and added comments in #5, preferring to leave the checks in mdtruncate() to minimize backpatch changes; #6 subsequently refined the explanatory wording.
- Heikki committed #6 with light editorial changes as 2514f1c774 and announced application to all branches in #7; he omitted the misleading claim that smgrtruncate() ignores oversized requests entirely, leaving only improved wording for that comment open.