Re: Buffer access rules, and a probable bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Buffer access rules, and a probable bug
Дата
Msg-id 26901.994217376@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Buffer access rules, and a probable bug  (ncm@zembu.com (Nathan Myers))
Ответы Re: Buffer access rules, and a probable bug  (Bill Studenmund <wrstuden@zembu.com>)
Список pgsql-hackers
ncm@zembu.com (Nathan Myers) writes:
> Here, backend B is a good citizen and locks while it makes its change.

No, backend B wasn't a good citizen: it should have been holding
exclusive lock on the buffer.

> Also, as hints, would it be Bad(tm) if an attempt to clear one failed?

Clearing hint bits is also an exclusive-lock-only operation.  Notice
I specified that *setting* them is the only case allowed to be done
with shared lock.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: stuck spin lock with many concurrent users
Следующее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: Re: Backup and Recovery