model-writtenrun 3766 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Karen Talarico reported a PostgreSQL 12.6 parallel-worker failure requesting 1073741824 bytes during a large TPC-H query #1, and Thomas Munro initially investigated oversized tuples and batch metadata, suggesting huge-allocation flags if batch metadata proved responsible #2 #3.
- After Karen and a colleague examined a core dump, Thomas identified bucket-array rounding during the transition from one batch to many as the cause of exceeding MaxAllocSize by one byte #4; he supplied a standalone reproducer and a patch that rounds the allocation cap down to a power of two, leaving broader improvements for later #5.
- In December 2023, Andrei Lepikhov revived the unresolved bug with another reproducer and a revised patch using pg_prevpower2_32 #6; Thomas acknowledged having forgotten the earlier fix and added a CommitFest entry #7.
- Alena Rybakina reviewed Andrei's patch, found no errors, and attached a small refactoring that combined bucket-calculation statements #8, while Andrei emphasized fixing the clear bug despite the scope for further investigation of extreme cases #9.
- Alexander Korotkov committed Andrei's revised fix as 2a67b5a60e, with declaration, formatting, and explanatory-comment edits, leaving Alena's optional refactoring out; his final message confirmed the fix had landed and been backpatched through PostgreSQL 12 #10.