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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS.
Date: 2016-04-03 19:16:14
Message-ID: E1amnVO-00085f-EC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-04-03 21:37:05 pgsql: Clean up dubious code in contrib/seg.
Previous Message Tom Lane 2016-04-03 18:17:33 pgsql: Clean up some stuff in new contrib/bloom module.