Fix contrib/bloom to not fail under CLOBBER_CACHE_ALWAYS.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| contrib/bloom/bloom.h | modified | +2 −3 |
| contrib/bloom/blscan.c | modified | +2 −2 |
| contrib/bloom/blutils.c | modified | +4 −4 |