model-writtenrun 1978 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ekaterina Sokolova reported that recovery could leave the checkpointer repeatedly failing allocations larger than 1 GB and asked whether huge allocations or chunked processing were appropriate #1.
- Maxim Orlov initially proposed allowing huge allocations in both absorption and compaction #2, but Andres Freund argued that incremental processing would reduce memory pressure and prolonged lock holding #3.
- Maxim implemented batching #5, corrected the handling of requests appended while the lock was released #6, and then replaced that approach with bounded removal from the queue #7 and repeated batches within each call #8.
- Xuneng Zhou reviewed the batching patch and questioned its copying overhead and batch size #9; Maxim explained that the 1 GB size came from MaxAllocSize rather than performance tuning #10.
- Heikki Linnakangas proposed a ring buffer to eliminate memmove(), batches of about 10,000 entries, and a queue cap of 10 million requests #11; Xuneng implemented those changes on top of Maxim's patch #12 and then removed an unused variable #13.
- Alexander Korotkov proposed batching compaction, filling gaps from the queue tail, and using only the queue cap for stable branches #14, emphasizing shorter lock holds in subsequent discussion #16.
- Xuneng found that filling gaps from the tail could violate queue invariants or the ordering semantics of forget and filter requests, so he retained forward-scan compaction #19.
- Xuneng added batched compaction to bound temporary memory, accepting missed duplicates across batch boundaries and retaining the lock throughout because releasing it would introduce races #20.
- Alexander rejected batched compaction because it added complexity without shortening lock holds, withdrew tail-based gap filling, and returned to the earlier ring-buffer implementation with revised comments and a separate cap-only stable-branch patch #21; Xuneng approved the submission #22.
- Alexander committed the ring-buffer implementation from #21 with only comment edits as 258bf0a2ea, and committed its queue-cap subset for stable branches as bae5078217.
- While preparing release notes, Tom Lane noticed that shared-memory sizing still used uncapped NBuffers despite the new queue limit, and also asked who deserved authorship credit for the minimal backpatch #24.
- Xuneng supplied an allocation-size fix #25, but Alexander corrected it to use Min(NBuffers, MAX_CHECKPOINT_REQUESTS) before committing 466c5435fd, as Xuneng acknowledged afterward #26.
- The thread ends with Alexander thanking Xuneng and Tom #27; the selected implementation, stable-branch cap, and allocation follow-up have landed, while batched compaction and tail-based gap filling were abandoned and the backpatch-authorship question received no explicit answer.