Re: Replace known_assigned_xids_lck by memory barrier - Mailing list pgsql-hackers

From Michail Nikolaev
Subject Re: Replace known_assigned_xids_lck by memory barrier
Date
Msg-id CANtu0ohXFhY2gq=D9cHFLfJjLrNMOGcUGR5thJCSpqweNnqbpQ@mail.gmail.com
Whole thread Raw
In response to Re: Replace known_assigned_xids_lck by memory barrier  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Replace known_assigned_xids_lck by memory barrier
List pgsql-hackers
Hello, good question!

Thanks for your edits.

As answer: probably we need to change
"If we know that we're holding ProcArrayLock exclusively, we don't
need the read barrier."
to
"If we're removing xid, we don't need the read barrier because only
the startup process can remove and add xids to KnownAssignedXids"

Best regards,
Mikhail.



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Replace known_assigned_xids_lck by memory barrier
Next
From: Nathan Bossart
Date:
Subject: Re: Using defines for protocol characters