Re: Slow standby snapshot

Поиск
Список
Период
Сортировка
От Michail Nikolaev
Тема Re: Slow standby snapshot
Дата
Msg-id CANtu0oj1WvTZUqqXSFm340vsh-zmDeJeb1DNQB=6EK=bMHELZg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Slow standby snapshot  (Andrey Borodin <x4mmm@yandex-team.ru>)
Ответы Re: Slow standby snapshot  (Andrey Borodin <x4mmm@yandex-team.ru>)
Список pgsql-hackers
Hello, Andrey.

> Write barrier must be issued after write, not before.
> Don't we need to issue read barrier too?

The write barrier is issued after the changes to KnownAssignedXidsNext
and KnownAssignedXidsValid arrays and before the update of
headKnownAssignedXids.
So, it seems to be correct. We make sure once the CPU sees changes of
headKnownAssignedXids - underlying arrays contain all the required
data.

Thanks,
Michail.



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

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: Slow standby snapshot
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: parallel vacuum comments