Re: Time limit for a process to hold Content lock in Buffer Cache

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: Time limit for a process to hold Content lock in Buffer Cache
Дата
Msg-id 004b01ce57a4$54bcde80$fe369b80$@kapila@huawei.com
обсуждение исходный текст
Ответ на Time limit for a process to hold Content lock in Buffer Cache  (Atri Sharma <atri.jiit@gmail.com>)
Список pgsql-hackers
On Thursday, May 23, 2013 3:35 PM Atri Sharma wrote:
> Hi all,
> 
> I was searching for an existing mechanism which ensures that a crashed
> process releases a content lock held on a page in buffer cache. Also,
> a similar mechanism for refcount of the page.
> 
> I seem to have missed it. Do we have a mechanism,and if yes,where can I
> find it?

On any process (backend, bgwriter,checkpointer, ..) crash, it reinitialize
the shared memory which will clear any locks held.
Please refer functions HandleChildCrash() and PostmasterStateMachine().


With Regards,
Amit Kapila.




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

Предыдущее
От: Mathieu Guerin
Дата:
Сообщение: WARNING : pgstat wait timeout - stats_temp_directory - postgres 9.1
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pg_rewind, a tool for resynchronizing an old master after failover