Re: pgsql: Do all accesses to shared buffer headers

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: pgsql: Do all accesses to shared buffer headers
Дата
Msg-id 1129156902.8718.1.camel@localhost.localdomain
обсуждение исходный текст
Ответ на pgsql: Do all accesses to shared buffer headers through  (tgl@svr1.postgresql.org (Tom Lane))
Ответы Re: pgsql: Do all accesses to shared buffer headers through
Список 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 по дате отправления:

Предыдущее
От: momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Remove item: < * Prevent libpq's PQfnumber() from lowercasing
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Do all accesses to shared buffer headers through