Re: strange perf regression with data checksums
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Tomas Vondra <tomas@vondra.me>
Cc: Aleksander Alekseev <aleksander@timescale.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2025-05-19T17:20:33Z
Lists: pgsql-hackers
Attachments
- v1-0001-Avoid-BufferGetLSNAtomic-calls-during-index-only-.patch (application/octet-stream) patch v1-0001
On Mon, May 19, 2025 at 12:42 PM Peter Geoghegan <pg@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
Commits
-
Make _bt_killitems drop pins it acquired itself.
- 7c319f54917f 18.0 landed
- 40aa5ddea1c0 17.6 landed
- c7f25feb3862 16.10 landed
- d2ec671092a1 15.14 landed
- 7c7c0a77dc8a 14.19 landed
- 38c8d298704c 13.22 landed
-
Avoid BufferGetLSNAtomic() calls during nbtree scans.
- e6eed40e4441 18.0 landed
-
Reduce pinning and buffer content locking for btree scans.
- 2ed5b87f96d4 9.5.0 cited