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 FixedParallelState->last_xlog_end to an atomic variable.
Date: Fri, 04 Sep 2026 14:49:08 +0000
Message-ID: <E1x2VE3-00000003SrI-0d6X@gemulon.postgresql.org> (raw)
Convert FixedParallelState->last_xlog_end to an atomic variable.
Currently, this variable is an XLogRecPtr protected by a spinlock.
By converting it to an atomic variable, we can remove the spinlock.
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/67b593861de13226d5bb23271aeaa16ce67024de
Modified Files
--------------
src/backend/access/transam/parallel.c | 22 ++++++++--------------
1 file changed, 8 insertions(+), 14 deletions(-)
Message-ID: <E1x2VE3-00000003SrI-0d6X@gemulon.postgresql.org>
Permalink: ../E1x2VE3-00000003SrI-0d6X@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1x2VE3-00000003SrI-0d6X@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 FixedParallelState->last_xlog_end to an atomic variable.
In-Reply-To: <E1x2VE3-00000003SrI-0d6X@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