| От | Tom Lane |
|---|---|
| Тема | Re: BUG #5157: Hash index not concurrency safe |
| Дата | |
| Msg-id | 6751.1257090750@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #5157: Hash index not concurrency safe ("Jeff Janes" <jeff.janes@gmail.com>) |
| Ответы |
Re: BUG #5157: Hash index not concurrency safe
|
| Список | pgsql-bugs |
"Jeff Janes" <jeff.janes@gmail.com> writes:
> Hash index is not concurrency safe, starting in REL8_4_0 and up to HEAD.
Ouch. This used to be okay, because adding new entries to a hash page
always added them at the end. The 8.4 changes to keep individual hash
pages sorted by hashcode broke it :-(.
I think we could recover by having the hashgettuple code path
re-synchronize by looking for the heap TID it previously returned.
That must be at the same or higher index TID as we had stopped at.
(Deletions are not possible, so we only have to search forward,
and the TID must be there someplace.)
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера