agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert some ParallelBlockTableScanDescData fields to atomics.
Date: Fri, 04 Sep 2026 15:56:43 +0000
Message-ID: <E1x2WHS-00000003TGk-2cuV@gemulon.postgresql.org> (raw)
Convert some ParallelBlockTableScanDescData fields to atomics.
Currently, phs_startblock and phs_numblock are of type BlockNumber
and are protected by a spinlock. By converting them to atomic
variables, we can remove the spinlock and some retry code.
Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com>
Tested-by: solai v <solai.cdac@gmail.com>
Discussion: https://postgr.es/m/alAJeRRzehDjLaF1%40nathan
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7344937cbe640cd8c5304cefe7d6b726187ad4ab
Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 2 +-
src/backend/access/table/tableam.c | 59 +++++++++++++++-----------------
src/include/access/relscan.h | 8 ++---
3 files changed, 31 insertions(+), 38 deletions(-)
Message-ID: <E1x2WHS-00000003TGk-2cuV@gemulon.postgresql.org>
Permalink: ../E1x2WHS-00000003TGk-2cuV@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1x2WHS-00000003TGk-2cuV@gemulon.postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Convert some ParallelBlockTableScanDescData fields to atomics.
In-Reply-To: <E1x2WHS-00000003TGk-2cuV@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox