[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: [HACKERS] A misconception about the meaning of 'volatile' in GetNewTransactionId?
From:       Tom Lane <tgl () sss ! pgh ! pa ! us>
Date:       2017-04-30 1:19:09
Message-ID: 32203.1493515149 () sss ! pgh ! pa ! us
[Download RAW message or body]

Thomas Munro <thomas.munro@enterprisedb.com> writes:
> I was reading xact.c and noticed this block:
> ...
> Isn't this insufficient on non-TSO systems like POWER and Arm?

Yeah, I think you're right.  That code probably predates our support
for memory barriers, so "volatile" was the best we could do at the
time --- but as you say, it doesn't fix hardware-level rearrangements.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic