Re: [HACKERS] ERROR: btree scan list trashed ??

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] ERROR: btree scan list trashed ??
Дата
Msg-id 37A90BB8.BAAE700@krs.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] ERROR: btree scan list trashed ??  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] ERROR: btree scan list trashed ??  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
Tom Lane wrote:
> 
> The BTScans variable in nbtscan.c needs to be reset to NULL during
> xact abort.  I don't see how this would *directly* cause the
> observed symptom, but failing to do it should lead to misbehavior in
> _bt_adjscans() during later transactions, so it might be related
> somehow.  If you want to patch it, make a subroutine that clears the
> variable (no need to free the list; since it's palloc'd it'll go
> away anyway) and call it from transaction cleanup in
> backend/access/transam/xact.c.

This should be fixed in CVS too.

Vadim


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

Предыдущее
От: "Hub.Org News Admin"
Дата:
Сообщение: ...
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] ERROR: btree scan list trashed ??