model-writtenrun 1089 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported that custom statistics used ShmemAlloc() despite already reserving their storage, wasting the reservation and producing anonymous allocations; his patch used the reserved space and raised the choice between MAXALIGN and cache-line alignment #1.
- Michael Paquier confirmed that MAXALIGN was intended, identified PostgreSQL 18 as the affected stable branch, and revised the patch to use overflow-checking add_size() when calculating shared-memory requirements #2.
- Testing revealed failures with 32-bit builds #3, which Michael traced to the test module sizing its shared memory for the statistics payload instead of the enclosing shared structure; he supplied corrected HEAD and v18 variants #4.
- Michael first committed the test-module size correction separately in 9897957805, implementing the additional fix described in #4 and backpatching it to PostgreSQL 18.
- Michael then committed the allocation fix in 17132f55c5, crediting Heikki and preserving the exact allocation and overflow-checking changes visible in #2, apparently split from the combined revision in #4.
- In his closing report, Michael clarified that both HEAD and PostgreSQL 18 test modules underestimated shared_size, although he observed a direct failure only on 32-bit HEAD builds, and confirmed that both fixes had landed with no remaining work identified #5.