Re: Atomics in localbuf.c

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Atomics in localbuf.c
Дата
Msg-id CA+TgmoaiUy_eHhG9fhA_Men28Y1Es-HbKSXbmrCHCQYh-ribBg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Atomics in localbuf.c  (Antonin Houska <ah@cybertec.at>)
Ответы Re: Atomics in localbuf.c  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Fri, Mar 6, 2020 at 2:04 AM Antonin Houska <ah@cybertec.at> wrote:
> ok. What I missed is that BufferDesc.state is declared as pg_atomic_uint32
> rather than plain int, so the pg_atomic_...() functions should be used
> regardless the buffer is shared or local. Sorry for the noise.

Right. I thought, though, that your question was why we did it that
way instead of just declaring them as uint32. I'm not sure it's very
important, but I think that question hasn't really been answered.

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeremy Finzel
Дата:
Сообщение: Re: PHJ file leak.
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Crash by targetted recovery