PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
brin_page.h File Reference
#include "storage/block.h"
#include "storage/itemptr.h"
Include dependency graph for brin_page.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  BrinSpecialSpace
 
struct  BrinMetaPageData
 
struct  RevmapContents
 

Macros

#define BrinPageType(page)
 
#define BrinPageFlags(page)
 
#define BRIN_PAGETYPE_META   0xF091
 
#define BRIN_PAGETYPE_REVMAP   0xF092
 
#define BRIN_PAGETYPE_REGULAR   0xF093
 
#define BRIN_IS_META_PAGE(page)   (BrinPageType(page) == BRIN_PAGETYPE_META)
 
#define BRIN_IS_REVMAP_PAGE(page)   (BrinPageType(page) == BRIN_PAGETYPE_REVMAP)
 
#define BRIN_IS_REGULAR_PAGE(page)   (BrinPageType(page) == BRIN_PAGETYPE_REGULAR)
 
#define BRIN_EVACUATE_PAGE   (1 << 0)
 
#define BRIN_CURRENT_VERSION   1
 
#define BRIN_META_MAGIC   0xA8109CFA
 
#define BRIN_METAPAGE_BLKNO   0
 
#define REVMAP_CONTENT_SIZE
 
#define REVMAP_PAGE_MAXITEMS   (REVMAP_CONTENT_SIZE / sizeof(ItemPointerData))
 

Typedefs

typedef struct BrinSpecialSpace BrinSpecialSpace
 
typedef struct BrinMetaPageData BrinMetaPageData
 
typedef struct RevmapContents RevmapContents
 

Macro Definition Documentation

#define BRIN_CURRENT_VERSION   1

Definition at line 72 of file brin_page.h.

Referenced by brinbuild(), and brinbuildempty().

#define BRIN_EVACUATE_PAGE   (1 << 0)
#define BRIN_IS_META_PAGE (   page)    (BrinPageType(page) == BRIN_PAGETYPE_META)

Definition at line 55 of file brin_page.h.

Referenced by brin_page_cleanup().

#define BRIN_IS_REVMAP_PAGE (   page)    (BrinPageType(page) == BRIN_PAGETYPE_REVMAP)

Definition at line 56 of file brin_page.h.

Referenced by brin_page_cleanup().

#define BRIN_META_MAGIC   0xA8109CFA

Definition at line 73 of file brin_page.h.

Referenced by brin_metapage_init().

#define BRIN_METAPAGE_BLKNO   0
#define BRIN_PAGETYPE_META   0xF091

Definition at line 51 of file brin_page.h.

Referenced by brin_metapage_info(), brin_metapage_init(), and brin_page_type().

#define BRIN_PAGETYPE_REGULAR   0xF093
#define BRIN_PAGETYPE_REVMAP   0xF092
#define BrinPageFlags (   page)
Value:
PageGetSpecialPointer(page))->vector[MAXALIGN(1) / sizeof(uint16) - 2])
unsigned short uint16
Definition: c.h:267
#define PageGetSpecialPointer(page)
Definition: bufpage.h:323
#define MAXALIGN(LEN)
Definition: c.h:588

Definition at line 46 of file brin_page.h.

Referenced by br_page_get_freespace(), brin_doupdate(), brin_evacuate_page(), and brin_start_evacuating_page().

#define BrinPageType (   page)
Value:
PageGetSpecialPointer(page))->vector[MAXALIGN(1) / sizeof(uint16) - 1])
unsigned short uint16
Definition: c.h:267
#define PageGetSpecialPointer(page)
Definition: bufpage.h:323
#define MAXALIGN(LEN)
Definition: c.h:588

Definition at line 42 of file brin_page.h.

Referenced by brin_page_init(), brin_page_type(), revmap_physical_extend(), and verify_brin_page().

#define REVMAP_CONTENT_SIZE
Value:
#define SizeOfPageHeaderData
Definition: bufpage.h:213
#define MAXALIGN(LEN)
Definition: c.h:588
#define offsetof(type, field)
Definition: c.h:555

Definition at line 88 of file brin_page.h.

#define REVMAP_PAGE_MAXITEMS   (REVMAP_CONTENT_SIZE / sizeof(ItemPointerData))

Definition at line 93 of file brin_page.h.

Referenced by brin_revmap_data().

Typedef Documentation