On Mon, May 19, 2025 at 12:42 PM Peter Geoghegan <p...@bowt.ie> wrote: > We don't actually need to call BufferGetLSNAtomic() from _bt_readpage > during index-only scans (nor during bitmap index scans). We can just > not call BufferGetLSNAtomic() at all (except during plain index > scans), with no possible downside.
Attached quick-and-dirty prototype patch shows how this could work. It fully avoids calling BufferGetLSNAtomic() from _bt_readpage() during index-only scans. I find that "meson test" passes with the patch applied (I'm reasonably confident that this general approach is correct). Does this patch of mine actually fix the regressions that you're concerned about? -- Peter Geoghegan
v1-0001-Avoid-BufferGetLSNAtomic-calls-during-index-only-.patch
Description: Binary data