Re: pgsql: Do all accesses to shared buffer headers

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Do all accesses to shared buffer headers
Date: 2005-10-12 22:41:42
Message-ID: 1129156902.8718.1.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Wed, 2005-12-10 at 13:45 -0300, Tom Lane wrote:
> Do all accesses to shared buffer headers through volatile-qualified
> pointers, to ensure that compilers won't rearrange accesses to occur
> while we're not holding the buffer header spinlock.

That is fairly error prone :-( Would it be possible to hide this in a
typedef?

-Neil

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-10-12 22:54:29 Re: pgsql: Do all accesses to shared buffer headers through
Previous Message Bruce Momjian 2005-10-12 22:39:36 pgsql: Remove item: < * Prevent libpq's PQfnumber() from lowercasing

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-10-12 22:54:29 Re: pgsql: Do all accesses to shared buffer headers through
Previous Message Bruce Momjian 2005-10-12 22:40:50 Re: How TODO prevent PQfnumber() from lowercasing?