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

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

Commit: 371b213929e2723a6d00db040653927710e4ad6a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-09-11T17:15:55Z
Releases: 8.0.14
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