39 #define BRIN_DEFAULT_PAGES_PER_RANGE 128
40 #define BrinGetPagesPerRange(relation) \
41 (AssertMacro(relation->rd_rel->relkind == RELKIND_INDEX && \
42 relation->rd_rel->relam == BRIN_AM_OID), \
43 (relation)->rd_options ? \
44 ((BrinOptions *) (relation)->rd_options)->pagesPerRange : \
45 BRIN_DEFAULT_PAGES_PER_RANGE)
46 #define BrinGetAutoSummarize(relation) \
47 (AssertMacro(relation->rd_rel->relkind == RELKIND_INDEX && \
48 relation->rd_rel->relam == BRIN_AM_OID), \
49 (relation)->rd_options ? \
50 ((BrinOptions *) (relation)->rd_options)->autosummarize : \
struct BrinOptions BrinOptions
struct BrinStatsData BrinStatsData
void brinGetStats(Relation index, BrinStatsData *stats)
void _brin_parallel_build_main(dsm_segment *seg, shm_toc *toc)
BlockNumber pagesPerRange
BlockNumber revmapNumPages
BlockNumber pagesPerRange