pgsql: Convert FixedParallelState->last_xlog_end to an atomic variable.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Convert FixedParallelState->last_xlog_end to an atomic variable.
Date: 2026-09-04 14:49:08
Message-ID: E1x2VE3-00000003SrI-0d6X@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)parragi(at)percona(dot)com>
Tested-by: solai v <solai(dot)cdac(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-09-04 14:51:19 pgsql: doc: Pluralize MXID when referring to Multixact IDs
Previous Message Fujii Masao 2026-09-04 14:06:35 pgsql: Use pg_parse_lsn() for LSNs in backup manifests