Re: Atomics in localbuf.c - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Atomics in localbuf.c
Date
Msg-id CA+TgmoZBAhMjGhGffiEUQS0Ft_9pzXy4MOS+7HZaBQAw-haeiw@mail.gmail.com
Whole thread Raw
In response to Re: Atomics in localbuf.c  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Fri, Mar 6, 2020 at 2:06 PM Andres Freund <andres@anarazel.de> wrote:
> > Since local/shared buffers share the buffer header definition, we still have to use proper functions to access
> > the atomic variables.
>
> There's only one struct BufferDesc. We could separate them out /
> introduce a union or such. But that'd add some complexity / potential
> for mistakes too.

OK, got it. Thanks.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Some problems of recovery conflict wait events
Next
From: Fujii Masao
Date:
Subject: Re: recovery_target_action=pause with confusing hint