Re: Unsplitting btree index leaf pages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unsplitting btree index leaf pages
Дата
Msg-id 23063.1135266024@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unsplitting btree index leaf pages  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Unsplitting btree index leaf pages  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Unsplitting btree index leaf pages  (Simon Riggs <simon@2ndquadrant.com>)
Re: Unsplitting btree index leaf pages  (Manfred Koizar <mkoi-pg@aon.at>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> Sorry, I missed that. 

And you evidently still didn't understand it.  Locking both pages does
not fix the problem, because it doesn't guarantee that there's not a
concurrent indexscan in flight from one to the other.  If you move items
from one page to the other in the opposite direction from the way the
scan is going, then it will miss those items.  If we try to fix this by
making scans lock one page before releasing the previous, then we'll
create a bunch of deadlock cases.
        regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: WAL bypass for INSERT, UPDATE and DELETE?
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Unsplitting btree index leaf pages