model-writtenrun 2208 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniil Davydov proposed scanning local buffers once for all forks of a temporary relation in #1, extending an existing shared-buffer optimization, and separately suggested batching scans across relations, TOAST tables and indexes.
- Michael Paquier supported the optimization but requested measurements in #2; Daniil deferred the broader batching idea while seeking to land the attached patch in #3, and Michael reiterated the need for performance evidence in #6.
- Fujii Masao recommended moving the buffer-validity check outside the fork loop and stopping after invalidation in #4; Daniil incorporated both changes in #5.
- Dilip Kumar reported about 18% faster truncation in #7, and Daniil reported about 7% improvement with two populated forks in #8; Fujii accepted the revision and proposed readiness for commit once PostgreSQL 19 development opened in #9.
- Dilip suggested a way to exercise visibility-map handling in #10, and Daniil supplied a reproducible workload creating all three forks in #11.
- Yura Sokolov proposed reorganizing local-buffer lookup into a two-stage structure to avoid whole-pool scans in #12; Fujii kept that idea as a possible measured follow-up in #13, and Maxim Orlov endorsed the current patch based on review and experience with a similar customer fix in #14.
- Fujii committed #5 unchanged as 78ebda66bf and announced completion in #15; Daniil acknowledged it in #16, leaving the submitted patch fully landed and the broader optimization ideas unimplemented in this thread.