Re: Atomic ops for unlogged LSN - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Atomic ops for unlogged LSN
Date
Msg-id 20230718000835.2ih4uyzbkn5u72ei@awork3.anarazel.de
Whole thread Raw
In response to Re: Atomic ops for unlogged LSN  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Atomic ops for unlogged LSN
List pgsql-hackers
Hi,

On 2023-07-17 16:15:52 -0700, Nathan Bossart wrote:
> On Mon, Jul 17, 2023 at 07:08:03PM -0400, Stephen Frost wrote:
> > Awesome.  Was there any other feedback on this change which basically is
> > just getting rid of a spinlock and replacing it with using atomics?
> > It's still in needs-review status but there's been a number of
> > comments/reviews (drive-by, at least) but without any real ask for any
> > changes to be made.
> 
> LGTM

Why don't we just use a barrier when around reading the value? It's not like
CreateCheckPoint() is frequent?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER
Next
From: Stephen Frost
Date:
Subject: Re: Dumping policy on a table belonging to an extension is expected?