Re: Deadlock possibility in _bt_check_unique?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Deadlock possibility in _bt_check_unique?
Дата
Msg-id 4643.1269370972@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Deadlock possibility in _bt_check_unique?  (Gokulakannan Somasundaram <gokul007@gmail.com>)
Список pgsql-hackers
Gokulakannan Somasundaram <gokul007@gmail.com> writes:
>       I am really confused. Please keep the cool and explain me, if i am
> wrong. I could see this code in _bt_findinsertloc. There is a
> _bt_relandgetbuf, which releases lock on p1 and tries to acquire a lock on
> p2.

No, read it again.  The only locks that get released inside that loop
are ones on intermediate dead pages (rbuf is not buf).  The lock on the
original page is only released after the loop.
        regards, tom lane


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

Предыдущее
От: Gokulakannan Somasundaram
Дата:
Сообщение: Re: Deadlock possibility in _bt_check_unique?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: xmlconcat (was 9.0 release notes done)