Andres Freund <andres@2ndquadrant.com> writes:
> I think we should rework things so that we fall back to
> pg_write_barrier(), (*((volatile slock_t *) (lock)) = 0) instead of what
> we have right now.
Surely it had better be a read barrier as well? And S_LOCK the same?
regards, tom lane