RE: btree split logic is fragile in the presence of lar ge index items

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: btree split logic is fragile in the presence of lar ge index items
Дата
Msg-id 8F4C99C66D04D4118F580090272A7A23018C67@SECTORBASE1
обсуждение исходный текст
Ответы Re: btree split logic is fragile in the presence of lar ge index items  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> > > What about unique key insertions ?
> > 
> > We'll have to find leftmost key in this case and do what we do now.
> >
> 
> Currently the page contains the leftmost key is the target page of
> insertion and is locked exclusively but it may be different in extra
> TID implementation. There may be a very rare deadlock possibility.

First, Tom is not going to do TID implementation now...
But anyway while we hold lock on a page we are able to go right
and lock pages (and we do this now). There is no possibility for
deadlock here: backward scans always unlock page before reading/locking
left page.

Vadim


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

Предыдущее
От: "Stephan Szabo"
Дата:
Сообщение: Re: Re: [GENERAL] PRIMARY KEY & INHERITANCE (fwd)
Следующее
От: Larry Rosenman
Дата:
Сообщение: mac.c