PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
brin.h
Go to the documentation of this file.
1 /*
2  * AM-callable functions for BRIN indexes
3  *
4  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
5  * Portions Copyright (c) 1994, Regents of the University of California
6  *
7  * IDENTIFICATION
8  * src/include/access/brin.h
9  */
10 #ifndef BRIN_H
11 #define BRIN_H
12 
13 #include "fmgr.h"
14 #include "nodes/execnodes.h"
15 #include "utils/relcache.h"
16 
17 
18 /*
19  * Storage type for BRIN's reloptions
20  */
21 typedef struct BrinOptions
22 {
23  int32 vl_len_; /* varlena header (do not touch directly!) */
25 } BrinOptions;
26 
27 #define BRIN_DEFAULT_PAGES_PER_RANGE 128
28 #define BrinGetPagesPerRange(relation) \
29  ((relation)->rd_options ? \
30  ((BrinOptions *) (relation)->rd_options)->pagesPerRange : \
31  BRIN_DEFAULT_PAGES_PER_RANGE)
32 
33 #endif /* BRIN_H */
uint32 BlockNumber
Definition: block.h:31
BlockNumber pagesPerRange
Definition: brin.h:24
signed int int32
Definition: c.h:256
int32 vl_len_
Definition: brin.h:23
struct BrinOptions BrinOptions