model-writtenrun 5479 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Robert Haas showed that BTMaxItemSize could fail to reserve room for a heap TID when the page's special area grew, attaching a dummy-field change that reproduced oversized-tuple errors during regression tests and proposing subtraction after the division and rounding #1.
- Peter Geoghegan accepted the diagnosis and recommended fixing only the development branch; Robert agreed, and Peter explained that the hypothetical failure would prevent a page split without causing downstream damage #2 #3 #4.
- Robert asked Peter to write the fix, while Stephen Frost reported encountering similar symptoms when experimenting with special space and agreed that backpatching appeared unnecessary #7 #8.
- Peter committed the discussion-derived macro correction, subtracting one aligned heap-TID allowance after calculating the tuple limit; the reproduction-only struct field was omitted, and the change was not backpatched #9 92f375056c.
- Thomas Munro then reported buildfarm failures during deduplication WAL replay, and Peter suspected the macro's use in nbtdedup.c on 32-bit systems #10 #11.
- Peter reproduced related regression failures on 64-bit systems by aligning the posting-size calculation, temporarily questioning whether the existing one-sixth-page limit was required for correctness #12.
- Peter ultimately identified an expression-grouping oversight in the revised macro and announced that he had pushed a follow-up fix; the thread ends with that correction reported as committed #13.