Re: [HACKERS] ERROR: btree scan list trashed ?? - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] ERROR: btree scan list trashed ??
Date
Msg-id 37A90BB8.BAAE700@krs.ru
Whole thread Raw
In response to Re: [HACKERS] ERROR: btree scan list trashed ??  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] ERROR: btree scan list trashed ??
List 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 by date:

Previous
From: "Hub.Org News Admin"
Date:
Subject: ...
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] ERROR: btree scan list trashed ??