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

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

Commit: 4603c29e3a072f0e274c7bc329cfe0b8d73701be
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-09-11T17:15:48Z
Releases: 8.1.10
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

PathChange+/−
src/backend/postmaster/bgwriter.c modified +2 −1