| From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Move visibility map memory ordering comments. |
| Date: | 2026-09-03 19:36:43 |
| Message-ID: | E1x2DEo-00000003Lvo-01Xg@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Move visibility map memory ordering comments.
nodeIndexonlyscan.c has long carried a detailed explanation of why it is
safe for index-only scans to test a visibility map bit without locking
the visibility map buffer, despite the possibility of reading a stale
value. Move that explanation into visibilitymap.c.
This is preparation for an upcoming commit that will move VM checks
needed by index-only scans out of the executor and into heapam.
Author: Peter Geoghegan <pg(at)bowt(dot)ie>
Suggested-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Reviewed-by: Tomas Vondra <tomas(at)vondra(dot)me>
Discussion: https://postgr.es/m/t6mtqbv2mbfhjni4bvwdgoecppjmxvbyfwl6utovzv76xc2672%40k3o5ryevaeqv
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/903d9d12cc0adcd9a7f92c7b35333e9e40756fbf
Modified Files
--------------
src/backend/access/heap/visibilitymap.c | 27 ++++++++++++++++++++++++++-
src/backend/executor/nodeIndexonlyscan.c | 29 ++++-------------------------
2 files changed, 30 insertions(+), 26 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nathan Bossart | 2026-09-03 20:16:27 | pgsql: Convert PROC_HDR->startupBufferPinWaitBufId to a Buffer. |
| Previous Message | Daniel Gustafsson | 2026-09-03 12:51:31 | Re: pgsql: Fix lack of message pluralization |