Mar 2026

1 commit
Avoid WAL flush checks for unlogged buffers in GetVictimBuffer()
11 Mar 2026Melanie Plagemanmaster19beta1REL_19_STABLE19beta1
LLM analysis, 99% suremodified before commitmoderate changesfrom patchset #70 of 1 reviewer saw the final version

The commit retains the BM_PERMANENT check from #7 in src/backend/storage/buffer/bufmgr.c, but combines the nested conditions, adds an explicit from_ring guard, and reads the LSN only after those guards pass. It also expands the comment to explain fake LSNs and the locking requirement.

  • Andres Freundsaw an earlier versiontrailerIn #3, he reviewed #2, questioned unnecessary checks and cross-file calls, and proposed passing the existing buffer state directly to the helper; substantial simplification followed before commitment.

Credits across 1 commit

Author
Melanie Plageman1
Reviewer
Andres Freund1
Reported by
Andres Freund1
Committer
Melanie Plageman1