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

Go to the source code of this file.

Data Structures

struct  xl_btree_metadata
 
struct  xl_btree_insert
 
struct  xl_btree_split
 
struct  xl_btree_delete
 
struct  xl_btree_reuse_page
 
struct  xl_btree_vacuum
 
struct  xl_btree_mark_page_halfdead
 
struct  xl_btree_unlink_page
 
struct  xl_btree_newroot
 

Macros

#define XLOG_BTREE_INSERT_LEAF   0x00 /* add index tuple without split */
 
#define XLOG_BTREE_INSERT_UPPER   0x10 /* same, on a non-leaf page */
 
#define XLOG_BTREE_INSERT_META   0x20 /* same, plus update metapage */
 
#define XLOG_BTREE_SPLIT_L   0x30 /* add index tuple with split */
 
#define XLOG_BTREE_SPLIT_R   0x40 /* as above, new item on right */
 
#define XLOG_BTREE_SPLIT_L_ROOT   0x50 /* add tuple with split of root */
 
#define XLOG_BTREE_SPLIT_R_ROOT   0x60 /* as above, new item on right */
 
#define XLOG_BTREE_DELETE   0x70 /* delete leaf index tuples for a page */
 
#define XLOG_BTREE_UNLINK_PAGE   0x80 /* delete a half-dead page */
 
#define XLOG_BTREE_UNLINK_PAGE_META   0x90 /* same, and update metapage */
 
#define XLOG_BTREE_NEWROOT   0xA0 /* new root page */
 
#define XLOG_BTREE_MARK_PAGE_HALFDEAD   0xB0 /* mark a leaf as half-dead */
 
#define XLOG_BTREE_VACUUM
 
#define XLOG_BTREE_REUSE_PAGE
 
#define SizeOfBtreeInsert   (offsetof(xl_btree_insert, offnum) + sizeof(OffsetNumber))
 
#define SizeOfBtreeSplit   (offsetof(xl_btree_split, newitemoff) + sizeof(OffsetNumber))
 
#define SizeOfBtreeDelete   (offsetof(xl_btree_delete, nitems) + sizeof(int))
 
#define SizeOfBtreeReusePage   (sizeof(xl_btree_reuse_page))
 
#define SizeOfBtreeVacuum   (offsetof(xl_btree_vacuum, lastBlockVacuumed) + sizeof(BlockNumber))
 
#define SizeOfBtreeMarkPageHalfDead   (offsetof(xl_btree_mark_page_halfdead, topparent) + sizeof(BlockNumber))
 
#define SizeOfBtreeUnlinkPage   (offsetof(xl_btree_unlink_page, btpo_xact) + sizeof(TransactionId))
 
#define SizeOfBtreeNewroot   (offsetof(xl_btree_newroot, level) + sizeof(uint32))
 

Typedefs

typedef struct xl_btree_metadata xl_btree_metadata
 
typedef struct xl_btree_insert xl_btree_insert
 
typedef struct xl_btree_split xl_btree_split
 
typedef struct xl_btree_delete xl_btree_delete
 
typedef struct xl_btree_reuse_page xl_btree_reuse_page
 
typedef struct xl_btree_vacuum xl_btree_vacuum
 
typedef struct
xl_btree_mark_page_halfdead 
xl_btree_mark_page_halfdead
 
typedef struct xl_btree_unlink_page xl_btree_unlink_page
 
typedef struct xl_btree_newroot xl_btree_newroot
 

Functions

void btree_redo (XLogReaderState *record)
 
void btree_desc (StringInfo buf, XLogReaderState *record)
 
const char * btree_identify (uint8 info)
 
void btree_mask (char *pagedata, BlockNumber blkno)
 

Macro Definition Documentation

#define SizeOfBtreeDelete   (offsetof(xl_btree_delete, nitems) + sizeof(int))
#define SizeOfBtreeInsert   (offsetof(xl_btree_insert, offnum) + sizeof(OffsetNumber))

Definition at line 69 of file nbtxlog.h.

Referenced by _bt_insertonpg().

#define SizeOfBtreeMarkPageHalfDead   (offsetof(xl_btree_mark_page_halfdead, topparent) + sizeof(BlockNumber))

Definition at line 195 of file nbtxlog.h.

Referenced by _bt_mark_page_halfdead().

#define SizeOfBtreeNewroot   (offsetof(xl_btree_newroot, level) + sizeof(uint32))

Definition at line 244 of file nbtxlog.h.

Referenced by _bt_getroot(), and _bt_newroot().

#define SizeOfBtreeReusePage   (sizeof(xl_btree_reuse_page))

Definition at line 140 of file nbtxlog.h.

Referenced by _bt_log_reuse_page().

#define SizeOfBtreeSplit   (offsetof(xl_btree_split, newitemoff) + sizeof(OffsetNumber))

Definition at line 110 of file nbtxlog.h.

Referenced by _bt_split().

#define SizeOfBtreeUnlinkPage   (offsetof(xl_btree_unlink_page, btpo_xact) + sizeof(TransactionId))

Definition at line 225 of file nbtxlog.h.

Referenced by _bt_unlink_halfdead_page().

#define SizeOfBtreeVacuum   (offsetof(xl_btree_vacuum, lastBlockVacuumed) + sizeof(BlockNumber))

Definition at line 172 of file nbtxlog.h.

Referenced by _bt_delitems_vacuum().

#define XLOG_BTREE_DELETE   0x70 /* delete leaf index tuples for a page */

Definition at line 33 of file nbtxlog.h.

Referenced by _bt_delitems_delete(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_INSERT_LEAF   0x00 /* add index tuple without split */

Definition at line 26 of file nbtxlog.h.

Referenced by _bt_insertonpg(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_INSERT_META   0x20 /* same, plus update metapage */

Definition at line 28 of file nbtxlog.h.

Referenced by _bt_insertonpg(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_INSERT_UPPER   0x10 /* same, on a non-leaf page */

Definition at line 27 of file nbtxlog.h.

Referenced by _bt_insertonpg(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_MARK_PAGE_HALFDEAD   0xB0 /* mark a leaf as half-dead */

Definition at line 37 of file nbtxlog.h.

Referenced by _bt_mark_page_halfdead(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_NEWROOT   0xA0 /* new root page */

Definition at line 36 of file nbtxlog.h.

Referenced by _bt_getroot(), _bt_newroot(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_REUSE_PAGE
Value:
0xD0 /* old page is about to be reused from
* FSM */

Definition at line 40 of file nbtxlog.h.

Referenced by _bt_log_reuse_page(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_SPLIT_L   0x30 /* add index tuple with split */

Definition at line 29 of file nbtxlog.h.

Referenced by _bt_split(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_SPLIT_L_ROOT   0x50 /* add tuple with split of root */

Definition at line 31 of file nbtxlog.h.

Referenced by _bt_split(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_SPLIT_R   0x40 /* as above, new item on right */

Definition at line 30 of file nbtxlog.h.

Referenced by _bt_split(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_SPLIT_R_ROOT   0x60 /* as above, new item on right */

Definition at line 32 of file nbtxlog.h.

Referenced by _bt_split(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_UNLINK_PAGE   0x80 /* delete a half-dead page */

Definition at line 34 of file nbtxlog.h.

Referenced by _bt_unlink_halfdead_page(), btree_desc(), btree_identify(), and btree_redo().

#define XLOG_BTREE_UNLINK_PAGE_META   0x90 /* same, and update metapage */
#define XLOG_BTREE_VACUUM
Value:
0xC0 /* delete entries on a page during
* vacuum */

Definition at line 38 of file nbtxlog.h.

Referenced by _bt_delitems_vacuum(), btree_desc(), btree_identify(), and btree_redo().

Typedef Documentation

Function Documentation

void btree_desc ( StringInfo  buf,
XLogReaderState record 
)

Definition at line 20 of file nbtdesc.c.

References appendStringInfo(), xl_btree_unlink_page::btpo_xact, RelFileNode::dbNode, xl_btree_split::firstright, xl_btree_vacuum::lastBlockVacuumed, xl_btree_reuse_page::latestRemovedXid, xl_btree_mark_page_halfdead::leafblk, xl_btree_unlink_page::leafleftsib, xl_btree_unlink_page::leafrightsib, xl_btree_mark_page_halfdead::leftblk, xl_btree_unlink_page::leftsib, xl_btree_split::level, xl_btree_newroot::level, xl_btree_delete::nitems, xl_btree_reuse_page::node, xl_btree_insert::offnum, RelFileNode::relNode, xl_btree_mark_page_halfdead::rightblk, xl_btree_unlink_page::rightsib, RelFileNode::spcNode, xl_btree_mark_page_halfdead::topparent, xl_btree_unlink_page::topparent, XLOG_BTREE_DELETE, XLOG_BTREE_INSERT_LEAF, XLOG_BTREE_INSERT_META, XLOG_BTREE_INSERT_UPPER, XLOG_BTREE_MARK_PAGE_HALFDEAD, XLOG_BTREE_NEWROOT, XLOG_BTREE_REUSE_PAGE, XLOG_BTREE_SPLIT_L, XLOG_BTREE_SPLIT_L_ROOT, XLOG_BTREE_SPLIT_R, XLOG_BTREE_SPLIT_R_ROOT, XLOG_BTREE_UNLINK_PAGE, XLOG_BTREE_UNLINK_PAGE_META, XLOG_BTREE_VACUUM, XLogRecGetData, XLogRecGetInfo, and XLR_INFO_MASK.

21 {
22  char *rec = XLogRecGetData(record);
23  uint8 info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
24 
25  switch (info)
26  {
30  {
31  xl_btree_insert *xlrec = (xl_btree_insert *) rec;
32 
33  appendStringInfo(buf, "off %u", xlrec->offnum);
34  break;
35  }
36  case XLOG_BTREE_SPLIT_L:
37  case XLOG_BTREE_SPLIT_R:
40  {
41  xl_btree_split *xlrec = (xl_btree_split *) rec;
42 
43  appendStringInfo(buf, "level %u, firstright %d",
44  xlrec->level, xlrec->firstright);
45  break;
46  }
47  case XLOG_BTREE_VACUUM:
48  {
49  xl_btree_vacuum *xlrec = (xl_btree_vacuum *) rec;
50 
51  appendStringInfo(buf, "lastBlockVacuumed %u",
52  xlrec->lastBlockVacuumed);
53  break;
54  }
55  case XLOG_BTREE_DELETE:
56  {
57  xl_btree_delete *xlrec = (xl_btree_delete *) rec;
58 
59  appendStringInfo(buf, "%d items", xlrec->nitems);
60  break;
61  }
63  {
65 
66  appendStringInfo(buf, "topparent %u; leaf %u; left %u; right %u",
67  xlrec->topparent, xlrec->leafblk, xlrec->leftblk, xlrec->rightblk);
68  break;
69  }
72  {
74 
75  appendStringInfo(buf, "left %u; right %u; btpo_xact %u; ",
76  xlrec->leftsib, xlrec->rightsib,
77  xlrec->btpo_xact);
78  appendStringInfo(buf, "leafleft %u; leafright %u; topparent %u",
79  xlrec->leafleftsib, xlrec->leafrightsib,
80  xlrec->topparent);
81  break;
82  }
83  case XLOG_BTREE_NEWROOT:
84  {
85  xl_btree_newroot *xlrec = (xl_btree_newroot *) rec;
86 
87  appendStringInfo(buf, "lev %u", xlrec->level);
88  break;
89  }
91  {
93 
94  appendStringInfo(buf, "rel %u/%u/%u; latestRemovedXid %u",
95  xlrec->node.spcNode, xlrec->node.dbNode,
96  xlrec->node.relNode, xlrec->latestRemovedXid);
97  break;
98  }
99  }
100 }
BlockNumber lastBlockVacuumed
Definition: nbtxlog.h:167
#define XLOG_BTREE_SPLIT_L_ROOT
Definition: nbtxlog.h:31
unsigned char uint8
Definition: c.h:263
#define XLOG_BTREE_INSERT_META
Definition: nbtxlog.h:28
RelFileNode node
Definition: nbtxlog.h:135
uint32 level
Definition: nbtxlog.h:241
#define XLOG_BTREE_NEWROOT
Definition: nbtxlog.h:36
#define XLogRecGetData(decoder)
Definition: xlogreader.h:202
void appendStringInfo(StringInfo str, const char *fmt,...)
Definition: stringinfo.c:110
#define XLOG_BTREE_INSERT_LEAF
Definition: nbtxlog.h:26
#define XLOG_BTREE_VACUUM
Definition: nbtxlog.h:38
#define XLOG_BTREE_UNLINK_PAGE
Definition: nbtxlog.h:34
#define XLogRecGetInfo(decoder)
Definition: xlogreader.h:198
#define XLOG_BTREE_DELETE
Definition: nbtxlog.h:33
#define XLOG_BTREE_REUSE_PAGE
Definition: nbtxlog.h:40
uint32 level
Definition: nbtxlog.h:105
#define XLOG_BTREE_MARK_PAGE_HALFDEAD
Definition: nbtxlog.h:37
OffsetNumber offnum
Definition: nbtxlog.h:66
#define XLOG_BTREE_SPLIT_R
Definition: nbtxlog.h:30
#define XLR_INFO_MASK
Definition: xlogrecord.h:62
OffsetNumber firstright
Definition: nbtxlog.h:106
#define XLOG_BTREE_INSERT_UPPER
Definition: nbtxlog.h:27
#define XLOG_BTREE_SPLIT_L
Definition: nbtxlog.h:29
#define XLOG_BTREE_UNLINK_PAGE_META
Definition: nbtxlog.h:35
TransactionId latestRemovedXid
Definition: nbtxlog.h:137
#define XLOG_BTREE_SPLIT_R_ROOT
Definition: nbtxlog.h:32
const char* btree_identify ( uint8  info)

Definition at line 103 of file nbtdesc.c.

References NULL, XLOG_BTREE_DELETE, XLOG_BTREE_INSERT_LEAF, XLOG_BTREE_INSERT_META, XLOG_BTREE_INSERT_UPPER, XLOG_BTREE_MARK_PAGE_HALFDEAD, XLOG_BTREE_NEWROOT, XLOG_BTREE_REUSE_PAGE, XLOG_BTREE_SPLIT_L, XLOG_BTREE_SPLIT_L_ROOT, XLOG_BTREE_SPLIT_R, XLOG_BTREE_SPLIT_R_ROOT, XLOG_BTREE_UNLINK_PAGE, XLOG_BTREE_UNLINK_PAGE_META, XLOG_BTREE_VACUUM, and XLR_INFO_MASK.

104 {
105  const char *id = NULL;
106 
107  switch (info & ~XLR_INFO_MASK)
108  {
110  id = "INSERT_LEAF";
111  break;
113  id = "INSERT_UPPER";
114  break;
116  id = "INSERT_META";
117  break;
118  case XLOG_BTREE_SPLIT_L:
119  id = "SPLIT_L";
120  break;
121  case XLOG_BTREE_SPLIT_R:
122  id = "SPLIT_R";
123  break;
125  id = "SPLIT_L_ROOT";
126  break;
128  id = "SPLIT_R_ROOT";
129  break;
130  case XLOG_BTREE_VACUUM:
131  id = "VACUUM";
132  break;
133  case XLOG_BTREE_DELETE:
134  id = "DELETE";
135  break;
137  id = "MARK_PAGE_HALFDEAD";
138  break;
140  id = "UNLINK_PAGE";
141  break;
143  id = "UNLINK_PAGE_META";
144  break;
145  case XLOG_BTREE_NEWROOT:
146  id = "NEWROOT";
147  break;
149  id = "REUSE_PAGE";
150  break;
151  }
152 
153  return id;
154 }
#define XLOG_BTREE_SPLIT_L_ROOT
Definition: nbtxlog.h:31
#define XLOG_BTREE_INSERT_META
Definition: nbtxlog.h:28
#define XLOG_BTREE_NEWROOT
Definition: nbtxlog.h:36
#define XLOG_BTREE_INSERT_LEAF
Definition: nbtxlog.h:26
#define XLOG_BTREE_VACUUM
Definition: nbtxlog.h:38
#define XLOG_BTREE_UNLINK_PAGE
Definition: nbtxlog.h:34
#define XLOG_BTREE_DELETE
Definition: nbtxlog.h:33
#define XLOG_BTREE_REUSE_PAGE
Definition: nbtxlog.h:40
#define XLOG_BTREE_MARK_PAGE_HALFDEAD
Definition: nbtxlog.h:37
#define XLOG_BTREE_SPLIT_R
Definition: nbtxlog.h:30
#define NULL
Definition: c.h:226
#define XLR_INFO_MASK
Definition: xlogrecord.h:62
#define XLOG_BTREE_INSERT_UPPER
Definition: nbtxlog.h:27
#define XLOG_BTREE_SPLIT_L
Definition: nbtxlog.h:29
#define XLOG_BTREE_UNLINK_PAGE_META
Definition: nbtxlog.h:35
#define XLOG_BTREE_SPLIT_R_ROOT
Definition: nbtxlog.h:32
void btree_mask ( char *  pagedata,
BlockNumber  blkno 
)

Definition at line 1038 of file nbtxlog.c.

References BTP_HAS_GARBAGE, BTP_SPLIT_END, BTPageOpaqueData::btpo_cycleid, BTPageOpaqueData::btpo_flags, mask_lp_flags(), mask_page_content(), mask_page_hint_bits(), mask_page_lsn(), mask_unused_space(), P_ISDELETED, P_ISLEAF, and PageGetSpecialPointer.

1039 {
1040  Page page = (Page) pagedata;
1041  BTPageOpaque maskopaq;
1042 
1043  mask_page_lsn(page);
1044 
1045  mask_page_hint_bits(page);
1046  mask_unused_space(page);
1047 
1048  maskopaq = (BTPageOpaque) PageGetSpecialPointer(page);
1049 
1050  if (P_ISDELETED(maskopaq))
1051  {
1052  /*
1053  * Mask page content on a DELETED page since it will be re-initialized
1054  * during replay. See btree_xlog_unlink_page() for details.
1055  */
1056  mask_page_content(page);
1057  }
1058  else if (P_ISLEAF(maskopaq))
1059  {
1060  /*
1061  * In btree leaf pages, it is possible to modify the LP_FLAGS without
1062  * emitting any WAL record. Hence, mask the line pointer flags. See
1063  * _bt_killitems(), _bt_check_unique() for details.
1064  */
1065  mask_lp_flags(page);
1066  }
1067 
1068  /*
1069  * BTP_HAS_GARBAGE is just an un-logged hint bit. So, mask it. See
1070  * _bt_killitems(), _bt_check_unique() for details.
1071  */
1072  maskopaq->btpo_flags &= ~BTP_HAS_GARBAGE;
1073 
1074  /*
1075  * During replay of a btree page split, we don't set the BTP_SPLIT_END
1076  * flag of the right sibling and initialize the cycle_id to 0 for the same
1077  * page. See btree_xlog_split() for details.
1078  */
1079  maskopaq->btpo_flags &= ~BTP_SPLIT_END;
1080  maskopaq->btpo_cycleid = 0;
1081 }
#define BTP_SPLIT_END
Definition: nbtree.h:75
void mask_page_hint_bits(Page page)
Definition: bufmask.c:44
BTPageOpaqueData * BTPageOpaque
Definition: nbtree.h:67
void mask_unused_space(Page page)
Definition: bufmask.c:69
void mask_page_content(Page page)
Definition: bufmask.c:117
void mask_page_lsn(Page page)
Definition: bufmask.c:30
BTCycleId btpo_cycleid
Definition: nbtree.h:64
#define P_ISDELETED(opaque)
Definition: nbtree.h:179
#define PageGetSpecialPointer(page)
Definition: bufpage.h:323
uint16 btpo_flags
Definition: nbtree.h:63
void mask_lp_flags(Page page)
Definition: bufmask.c:93
#define BTP_HAS_GARBAGE
Definition: nbtree.h:76
Pointer Page
Definition: bufpage.h:74
#define P_ISLEAF(opaque)
Definition: nbtree.h:177
void btree_redo ( XLogReaderState record)

Definition at line 983 of file nbtxlog.c.

References btree_xlog_delete(), btree_xlog_insert(), btree_xlog_mark_page_halfdead(), btree_xlog_newroot(), btree_xlog_reuse_page(), btree_xlog_split(), btree_xlog_unlink_page(), btree_xlog_vacuum(), elog, PANIC, XLOG_BTREE_DELETE, XLOG_BTREE_INSERT_LEAF, XLOG_BTREE_INSERT_META, XLOG_BTREE_INSERT_UPPER, XLOG_BTREE_MARK_PAGE_HALFDEAD, XLOG_BTREE_NEWROOT, XLOG_BTREE_REUSE_PAGE, XLOG_BTREE_SPLIT_L, XLOG_BTREE_SPLIT_L_ROOT, XLOG_BTREE_SPLIT_R, XLOG_BTREE_SPLIT_R_ROOT, XLOG_BTREE_UNLINK_PAGE, XLOG_BTREE_UNLINK_PAGE_META, XLOG_BTREE_VACUUM, XLogRecGetInfo, and XLR_INFO_MASK.

984 {
985  uint8 info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
986 
987  switch (info)
988  {
990  btree_xlog_insert(true, false, record);
991  break;
993  btree_xlog_insert(false, false, record);
994  break;
996  btree_xlog_insert(false, true, record);
997  break;
998  case XLOG_BTREE_SPLIT_L:
999  btree_xlog_split(true, false, record);
1000  break;
1001  case XLOG_BTREE_SPLIT_R:
1002  btree_xlog_split(false, false, record);
1003  break;
1005  btree_xlog_split(true, true, record);
1006  break;
1008  btree_xlog_split(false, true, record);
1009  break;
1010  case XLOG_BTREE_VACUUM:
1011  btree_xlog_vacuum(record);
1012  break;
1013  case XLOG_BTREE_DELETE:
1014  btree_xlog_delete(record);
1015  break;
1017  btree_xlog_mark_page_halfdead(info, record);
1018  break;
1021  btree_xlog_unlink_page(info, record);
1022  break;
1023  case XLOG_BTREE_NEWROOT:
1024  btree_xlog_newroot(record);
1025  break;
1026  case XLOG_BTREE_REUSE_PAGE:
1027  btree_xlog_reuse_page(record);
1028  break;
1029  default:
1030  elog(PANIC, "btree_redo: unknown op code %u", info);
1031  }
1032 }
static void btree_xlog_split(bool onleft, bool isroot, XLogReaderState *record)
Definition: nbtxlog.c:196
static void btree_xlog_vacuum(XLogReaderState *record)
Definition: nbtxlog.c:387
#define XLOG_BTREE_SPLIT_L_ROOT
Definition: nbtxlog.h:31
unsigned char uint8
Definition: c.h:263
#define XLOG_BTREE_INSERT_META
Definition: nbtxlog.h:28
static void btree_xlog_delete(XLogReaderState *record)
Definition: nbtxlog.c:663
#define PANIC
Definition: elog.h:53
#define XLOG_BTREE_NEWROOT
Definition: nbtxlog.h:36
static void btree_xlog_newroot(XLogReaderState *record)
Definition: nbtxlog.c:920
static void btree_xlog_reuse_page(XLogReaderState *record)
Definition: nbtxlog.c:960
#define XLOG_BTREE_INSERT_LEAF
Definition: nbtxlog.h:26
#define XLOG_BTREE_VACUUM
Definition: nbtxlog.h:38
#define XLOG_BTREE_UNLINK_PAGE
Definition: nbtxlog.h:34
#define XLogRecGetInfo(decoder)
Definition: xlogreader.h:198
#define XLOG_BTREE_DELETE
Definition: nbtxlog.h:33
#define XLOG_BTREE_REUSE_PAGE
Definition: nbtxlog.h:40
#define XLOG_BTREE_MARK_PAGE_HALFDEAD
Definition: nbtxlog.h:37
#define XLOG_BTREE_SPLIT_R
Definition: nbtxlog.h:30
#define XLR_INFO_MASK
Definition: xlogrecord.h:62
static void btree_xlog_unlink_page(uint8 info, XLogReaderState *record)
Definition: nbtxlog.c:806
#define XLOG_BTREE_INSERT_UPPER
Definition: nbtxlog.h:27
static void btree_xlog_mark_page_halfdead(uint8 info, XLogReaderState *record)
Definition: nbtxlog.c:724
#define XLOG_BTREE_SPLIT_L
Definition: nbtxlog.h:29
#define XLOG_BTREE_UNLINK_PAGE_META
Definition: nbtxlog.h:35
#define elog
Definition: elog.h:219
#define XLOG_BTREE_SPLIT_R_ROOT
Definition: nbtxlog.h:32
static void btree_xlog_insert(bool isleaf, bool ismeta, XLogReaderState *record)
Definition: nbtxlog.c:149