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