PostgreSQL Source Code  git master
visibilitymapdefs.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * visibilitymapdefs.h
4  * macros for accessing contents of visibility map pages
5  *
6  *
7  * Copyright (c) 2021, PostgreSQL Global Development Group
8  *
9  * src/include/access/visibilitymapdefs.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef VISIBILITYMAPDEFS_H
14 #define VISIBILITYMAPDEFS_H
15 
16 /* Number of bits for one heap page */
17 #define BITS_PER_HEAPBLOCK 2
18 
19 /* Flags for bit map */
20 #define VISIBILITYMAP_ALL_VISIBLE 0x01
21 #define VISIBILITYMAP_ALL_FROZEN 0x02
22 #define VISIBILITYMAP_VALID_BITS 0x03 /* OR of all valid visibilitymap
23  * flags bits */
24 
25 #endif /* VISIBILITYMAPDEFS_H */