Re: Slow standby snapshot - Mailing list pgsql-hackers

From Michail Nikolaev
Subject Re: Slow standby snapshot
Date
Msg-id CANtu0oj1WvTZUqqXSFm340vsh-zmDeJeb1DNQB=6EK=bMHELZg@mail.gmail.com
Whole thread Raw
In response to Re: Slow standby snapshot  (Andrey Borodin <x4mmm@yandex-team.ru>)
Responses Re: Slow standby snapshot
List 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 by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: Slow standby snapshot
Next
From: Amit Kapila
Date:
Subject: Re: parallel vacuum comments