model-writtenrun 2327 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas proposed standby-only CSN snapshots in #1 to let hot standby accept queries once physically consistent, without waiting for running-transaction information or overflowed subtransactions to finish; commit-record LSNs supplied the sequence numbers without changing primary-side commits.
- Kirill Reshke supplied stale-comment TODOs and suggested an extensible CSN provider in #2, while Andrey Borodin supported making progress with LSN-based CSNs in #3; Heikki explicitly kept the scope narrow in #4.
- The August series in #4 added a small visibility cache, changed logical snapshot building so the running-XID array could be removed, and separated an unrelated standby-lock comment cleanup; its performance harness was explicitly for development rather than merging.
- Kirill requested cleanup and stronger correctness testing in #5, and Andres Freund requested overlapping top-level transaction benchmarks and questioned subtransaction visibility ordering in #6.
- Heikki committed only the standalone standby-lock comment cleanup from #4 as 3c7d78427e, with the two comment hunks unchanged; the subsequent series in #7 omitted that patch.
- The expanded benchmarks in #7 exposed severe SLRU thrashing when active XIDs were widely separated, motivating a larger cache; Heikki also explained that latestCommitLSN advances only after all subtransaction CSNs are recorded, preventing partial transaction visibility.
- Heikki replaced the small cache with a growing radix tree in #8, substantially improving the adversarial benchmarks while accepting potentially large per-snapshot memory consumption provisionally; profiling in #9 explained additional gains and left the eviction-policy question open.
- John Naylor identified radix-tree height and allocation concerns in #10; Heikki responded with xmax-relative keys and smaller allocation contexts in #11, and John endorsed the revised cache patch in #12.
- After a several-month gap, Heikki introduced extensive snapshot-management refactoring in #13 so copied snapshots could share reference-counted state and the CSN cache; he also highlighted unmeasured recovery overhead from CLOG scanning and possible future cache optimizations.
- Mingwei Jia reported a startup-visibility concern in #14: transactions already committed before the checkpoint might never have their commits replayed into the CSN log; he preserved Heikki's twelve patches and appended a proposed CLOG fallback with a reproducing test.
- Mingwei resent the identical standalone fix after attachment problems in #15; at the thread's end, only the independent comment cleanup is shown committed, while the CSN implementation, snapshot refactoring, and proposed startup fix remain under discussion, with cache growth and recovery performance still unresolved.