Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS.

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

Commit: 8f75fd1f402acbc30bc15dbf51eb6dec1bbec600
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-04-03T19:16:07Z
Releases: 9.6.0
Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS.

The code was supposing that rd_amcache wouldn't disappear from under it
during a scan; which is wrong.  Copy the data out of the relcache rather
than trying to reference it there.

Files

PathChange+/−
contrib/bloom/bloom.h modified +2 −3
contrib/bloom/blscan.c modified +2 −2
contrib/bloom/blutils.c modified +4 −4