Re: BUG #1502: hash_seq_search might return removed entry

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1502: hash_seq_search might return removed entry
Дата
Msg-id 19661.1109175184@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1502: hash_seq_search might return removed entry  ("Thomas" <thhal@mailblocks.com>)
Ответы Re: BUG #1502: hash_seq_search might return removed entry  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-bugs
"Thomas" <thhal@mailblocks.com> writes:
> The hash_seq_search keeps track of what element that it should return next
> in a HASH_SEQ_STATUS struct when it peruses a bucket. Removing that element
> from the table won't change anything since the struct remains unaffected. It
> still holds onto that element and hence, will return it on next iteration.

This isn't a bug; it's the designed way for it to work.  It's up to
callers to avoid causing a problem.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1500: child dead
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: BUG #1500: child dead