Re: Reducing ClogControlLock contention

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Reducing ClogControlLock contention
Дата
Msg-id CANP8+jJ=zgXn6YSXh4TXo-A0V-7p4dLRMiPnAUS8_CrEipvP8g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Reducing ClogControlLock contention  (Amit Kapila <amit.kapila16@gmail.com>)
Ответы Re: Reducing ClogControlLock contention
Список pgsql-hackers
On 11 August 2015 at 14:53, Amit Kapila <amit.kapila16@gmail.com> wrote:
 
One more point here why do we need CommitLock before calling
SimpleLruReadPage_ReadOnly() in the patch and if it is not required,
then can we use LWLockAcquire(shared->buffer_locks[slotno], LW_EXCLUSIVE);
instead of CommitLock?

That prevents read only access, not just commits, so that isn't a better suggestion.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Reducing ClogControlLock contention
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Reducing ClogControlLock contention