Make sure that open hash table scans are cleaned up when bgwriter tries to

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f181f9e1e49b1546d7e42b43a04487dfc6f73690
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-09-11T17:15:33Z
Releases: 8.3.0
Make sure that open hash table scans are cleaned up when bgwriter tries to
recover from elog(ERROR).  Problem was created by introduction of hash seq
search tracking awhile back, and affects all branches that have bgwriter;
in HEAD the disease has snuck into autovacuum and walwriter too.  (Not sure
that the latter two use hash_seq_search at the moment, but surely they might
someday.)  Per report from Sergey Koposov.

Files