model-writtenrun 5824 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pengchengliu proposed backend-local caching of subtransaction SLRU pages after reporting severe SubtransSLRULock contention with more than 64 subtransactions per transaction, and reported that the attached implementation prevented the reproduced stalls #1.
- Andrey Borodin questioned the memory cost of per-backend page copies and advocated improving shared SLRU storage and partitioning its locks #2 #6; Pengchengliu reported that the alternative avoided stalls but remained substantially slower than local caching in his workload #7, while Zhihong Yu supplied naming and control-flow feedback on the original patch #4.
- Simon Riggs introduced a separate, much smaller cache for repeated SubTransGetTopmostTransaction() calls and also proposed reducing subtrans writes to transactions that overflow the cached-subtransaction limit #8.
- Andrey questioned whether overflow would still degrade unrelated backends #9, and Dilip Kumar raised a concern about resolving SUB_COMMITTED transactions #10; Simon explained the preceding in-progress checks #11, which resolved Dilip's concern #12, and stated that isolating overflow's effects was the intended goal #13.
- Simon posted an independent prototype changing subtransaction recording, snapshot searches, and transaction-lock waits, with the longer-term aim of replacing the subtrans SLRU; it passed make check but was explicitly offered for preliminary review and needed substantially more work #14.
- Simon subsequently reattached the unchanged single-item cache to separate its commitfest tracking from the broader prototype #16, and Andrey explicitly reviewed it favorably #17.
- Julien Rouhaud requested clearer naming, comment wrapping, and benchmarks for the single-item cache #18; Simon defended the cache's narrower purpose #19, and Julien accepted the comment's applicability while reiterating his interest in performance measurements #20.
- Michael Paquier committed the single-item cache from #16 as 06f5295af6, incorporating the variable rename and comment formatting while retaining its logic, and announced the application #21.
- After the landing, Andres Freund identified possible TransactionXmin-related inconsistencies and stale cache entries surviving until XID wraparound, questioned why caching occurred in SubTransGetTopmostTransaction() rather than SubTransGetParent(), and noted the absence of benchmarks #23; Michael acknowledged the concerns and favored reverting after beta1 instead of patching the design immediately #24.
- Amit Kapila proposed invalidating the cache as TransactionXmin advanced #25, but Andres emphasized that normal workloads could leave it untouched for days and explicitly called for a revert #26 #28; Peter Geoghegan also criticized the missing performance validation and endorsed reverting #27 #29.
- Michael removed the cache in b4529005fd and confirmed the revert in the final message, leaving SubTransGetParent() caching, robust invalidation, and convincing benchmarks as unresolved work #30; neither the original page-cache proposal #1 nor the broader prototype #14 landed in the supplied history.