mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fixes in bloom contrib module
Looking at result of buildfarm member jaguarundi it seems to me that BloomOptions isn't inited sometime, but I don't see yet how it's possible. Nevertheless, check of signature length's is missed, so, add a limit of it. Also add missed GenericXLogAbort() in case of already deleted page in vacuum + minor code refactoring.
This commit is contained in:
@ -63,6 +63,12 @@ typedef BloomPageOpaqueData *BloomPageOpaque;
|
||||
#define BLOOM_METAPAGE_BLKNO (0)
|
||||
#define BLOOM_HEAD_BLKNO (1) /* first data page */
|
||||
|
||||
/*
|
||||
* Maximum of bloom signature length in uint16. Actual value
|
||||
* is 512 bytes
|
||||
*/
|
||||
#define MAX_BLOOM_LENGTH (256)
|
||||
|
||||
/* Bloom index options */
|
||||
typedef struct BloomOptions
|
||||
{
|
||||
|
Reference in New Issue
Block a user