Re: pgsql: Refactor how some aux processes advertise their ProcNumber - Mailing list pgsql-committers

From Nathan Bossart
Subject Re: pgsql: Refactor how some aux processes advertise their ProcNumber
Date
Msg-id ak8RP8xn5_H0BrJV@nathan
Whole thread
List pgsql-committers
On Wed, Jul 08, 2026 at 05:43:01PM +0000, Heikki Linnakangas wrote:
> Switch to pg_atomic_uint32 for the fields. Seems easier to reason
> about than volatile pointers. There was some precedence for that, as
> were already using pg_atomic_uint32 for the procArrayGroupFirst and
> clogGroupFirst fields, which also store ProcNumbers.

Since removing volatile qualifiers is on my mind, I noticed that this patch
makes it possible to remove two more.  Patch attached.

-- 
nathan

Attachment

pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Doc: Clarify sequence synchronization commands.
Next
From: Michael Paquier
Date:
Subject: pgsql: Reject incorrect range_bounds_histograms in stats import functio