Introduce bloom_filter_size for BRIN bloom opclass
authorTomas Vondra <tomas.vondra@postgresql.org>
Sun, 2 Jul 2023 08:24:13 +0000 (10:24 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sun, 2 Jul 2023 08:24:29 +0000 (10:24 +0200)
commit2b8b2852bbc54f02e26131a966e62c432144dc93
tree6c6b2b2db2647f28e148b97d8b57d0f52abd7d2e
parent28d03feac386c2c68ffaa47f30e6578591ef5c1b
Introduce bloom_filter_size for BRIN bloom opclass

Move the calculation of Bloom filter parameters (for BRIN indexes) into
a separate function to make reuse easier. At the moment we only call it
from one place, but that may change and it's easier to read anyway.

Reviewed-by: Heikki Linnakangas
Discussion: https://postgr.es/m/0e1f3350-c9cf-ab62-43a5-5dae314de89c%40enterprisedb.com
src/backend/access/brin/brin_bloom.c