model-writtenrun 1745 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Casey Shobe reported crashes with 4KB blocks and initdb failures with 1KB or 2KB blocks; Tom Lane could not reproduce them and initially suspected stale build products #1 #2.
- Casey then isolated the failures to unusually large relation segment sizes, while Alvaro Herrera questioned how the compatibility check could reject values that printed identically #3 #4.
- Tom Lane suggested that --with-segsize could make RELSEG_SIZE exceed an int; Jeff Janes reported unsuccessful reproduction attempts, and Casey accepted the overflow explanation and suggested rejecting oversized values during configuration #5 #6 #7.
- Tom reproduced the failure with --with-blocksize=1 and --with-segsize=10000, found that configure's reliance on expr overflow detection was ineffective, and supplied a static assertion because he preferred compiler enforcement over assumptions about shell or Meson arithmetic #8.
- Tom committed the assertion after moving it from xlog.c to md.c, retaining its logic and declining backpatching because the longstanding hazard had only just drawn a complaint; the thread ended with his announcement that the fix was pushed 92cf557ffa #9.