pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve documentation for pg_atomic_unlocked_write_u32()
Date: Tue, 09 Dec 2025 04:12:30 +0000
Message-ID: <E1vSp5R-003YHd-2z@gemulon.postgresql.org> (raw)

Improve documentation for pg_atomic_unlocked_write_u32()

After my recent commit 7902a47c20b, Nathan noticed that
pg_atomic_unlocked_write_u64() was not accurately described by the comments
for the 32bit version. Turns out the 32bit version has suffered from
copy-and-paste-itis since its introduction. Fix.

Reported-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://postgr.es/m/aTGt7q4Jvn97uGAx@nathan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aa749bde323364039f369784071f315ad53c1325

Modified Files
--------------
src/include/port/atomics.h | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)



Message-ID: <E1vSp5R-003YHd-2z@gemulon.postgresql.org>
Permalink:  ../E1vSp5R-003YHd-2z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vSp5R-003YHd-2z@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: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Improve documentation for pg_atomic_unlocked_write_u32()
  In-Reply-To: <E1vSp5R-003YHd-2z@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox