Re: New statistics for WAL buffer dirty writes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: New statistics for WAL buffer dirty writes
Date
Msg-id 4973.1343765179@sss.pgh.pa.us
Whole thread Raw
In response to Re: New statistics for WAL buffer dirty writes  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: New statistics for WAL buffer dirty writes
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> IMHO, the way we have it now is kind of a mess.  SpinLockAcquire and
> SpinLockRelease are required to be CPU barriers, but they are not
> required to be compiler barriers.  If we changed that so that they
> were required to act as barriers of both flavors,

Since they are macros, how do you propose to do that exactly?

I agree that volatile-izing everything in the vicinity is a sucky
solution, but the last time we looked at this there did not seem to
be a better one.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: build postgresql on Mac OS X mountain lion with ossp-uuid
Next
From: David Fetter
Date:
Subject: Re: proposal - assign result of query to psql variable