model-writtenrun 1708 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Gregory Smith reported a PostgreSQL 18 parallel GIN build failure on OSM data with maintenance_work_mem set to 20GB, supplying an allocation-error stack trace pointing to GinBufferStoreTuple() #1.
- Tomas Vondra identified ordinary allocation limits and considered earlier trimming and huge allocations #2; Gregory then established that the workload succeeded at 4GB but failed at 5GB and above #3.
- After reproducing the failure, Tomas posted a two-allocation fix and initially judged it sufficient, while observing that earlier freezing trimmed too little data to solve the problem #4.
- Further testing exposed another allocation limit in ginMergeItemPointers(), so Tomas withdrew that assessment and supplied two alternatives: expand huge-allocation support or split worker TID lists into bounded chunks #5.
- Gregory reported that lower memory settings still performed well #6, and Tomas assembled both alternatives plus an earlier-freezing optimization into a three-patch series while noting another failure with huge allocations #7.
- Tomas extended huge-allocation support to decoding, but concluded that changing allocation assumptions throughout GIN was too invasive and provided no performance benefit, choosing bounded chunks instead #8.
- The chunk-splitting patch from #8 landed with small comment and loop edits as a26b753a08 and was backpatched to PostgreSQL 18; the earlier-trimming optimization landed with comment and cleanup adjustments as 1213cb4753 on master only.
- Tomas confirmed both landings in #9, closing the allocation fix with the huge-allocation alternative abandoned; Gregory's contributions documented the original failure and workload performance, without a reported test or review of the submitted patches.