Thread: pgsql: Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS.

pgsql: Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS.

From
Tom Lane
Date:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8f75fd1f402acbc30bc15dbf51eb6dec1bbec600

Modified Files
--------------
contrib/bloom/bloom.h   | 5 ++---
contrib/bloom/blscan.c  | 4 ++--
contrib/bloom/blutils.c | 8 ++++----
3 files changed, 8 insertions(+), 9 deletions(-)