pgsql: Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS.
Date
Msg-id E1amnVO-00085f-EC@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Clean up some stuff in new contrib/bloom module.
Next
From: Tom Lane
Date:
Subject: pgsql: Clean up dubious code in contrib/seg.