model-writtenrun 1084 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dmytro Astapov reported nondeterministic corruption in parallel array_agg(anyarray) with mixed NULL and non-NULL elements, traced it to missing bitmap extension, and supplied a fix that eliminated corruption in his tests on three PostgreSQL releases #1.
- Tom Lane confirmed the diagnosis and revised the fix to allocate bitmap capacity directly from the combined item count, guard size calculations against integer overflow, and tidy nearby code #2.
- Dmytro Astapov accepted those changes, reported successful tests using the original ten-million-row reproduction on PostgreSQL 17.9 and 18.3, and attached branch adaptations of Tom Lane's revision #3.
- The revised fix landed unchanged apart from base context as bb959269e3, matching the latest attachments in #3 and carrying backpatch instructions through PostgreSQL 16.
- Tom Lane confirmed that he had pushed the fix and thanked Dmytro Astapov, closing the thread with no outstanding work identified #4.