Re: SSI patch version 12 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SSI patch version 12
Date
Msg-id 29513.1295327372@sss.pgh.pa.us
Whole thread Raw
In response to Re: SSI patch version 12  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
>> Dan Ports  wrote:
> .... The biggest, in my mind, is whether
> MySerializableXact needs to be declared volatile.
> The problem is that I don't have a very clear sense of what it really
> does, which is not helped much by having done a few years of Java
> programming, where the same keyword seems to have a vaguely-similar-
> but-not-really-the-same meaning.

In C it means that the compiler must not try to optimize away loads or
stores of the variable, because the variable is subject to being read or
changed by outside forces (interrupt service routines, other processes
or threads, etc).
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_filedump moved to pgfoundry
Next
From: Jim Nasby
Date:
Subject: Confusing comment in TransactionIdIsInProgress