Re: pgsql: Do all accesses to shared buffer headers - Mailing list pgsql-committers

From Neil Conway
Subject Re: pgsql: Do all accesses to shared buffer headers
Date
Msg-id 1129156902.8718.1.camel@localhost.localdomain
Whole thread Raw
In response to pgsql: Do all accesses to shared buffer headers through  (tgl@svr1.postgresql.org (Tom Lane))
Responses Re: pgsql: Do all accesses to shared buffer headers through
List pgsql-committers
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



pgsql-committers by date:

Previous
From: momjian@svr1.postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Remove item: < * Prevent libpq's PQfnumber() from lowercasing
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Do all accesses to shared buffer headers through