Re: Atomic ops for unlogged LSN

John Morris <john.morris@crunchydata.com>

From: John Morris <john.morris@crunchydata.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, Andres Freund <andres@anarazel.de>, Stephen Frost <sfrost@snowman.net>, Michael Paquier <michael@paquier.xyz>, Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2023-11-01T21:15:20Z
Lists: pgsql-hackers

Attachments

Here is what I meant to do earlier. As it turns out, this patch has not been merged yet.

This is a rebased version . Even though I labelled it “v3”, there should be no changes from “v2”.

Commits

  1. Convert unloggedLSN to an atomic variable.

  2. Introduce atomic read/write functions with full barrier semantics.