mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
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.
This commit is contained in:
@ -110,12 +110,11 @@ typedef struct BloomMetaPageData
|
||||
typedef struct BloomState
|
||||
{
|
||||
FmgrInfo hashFn[INDEX_MAX_KEYS];
|
||||
BloomOptions *opts; /* stored in rd_amcache and defined at
|
||||
* creation time */
|
||||
BloomOptions opts; /* copy of options on index's metapage */
|
||||
int32 nColumns;
|
||||
|
||||
/*
|
||||
* sizeOfBloomTuple is index's specific, and it depends on reloptions, so
|
||||
* sizeOfBloomTuple is index-specific, and it depends on reloptions, so
|
||||
* precompute it
|
||||
*/
|
||||
Size sizeOfBloomTuple;
|
||||
|
Reference in New Issue
Block a user