|
35 | 35 | #include "utils/snapmgr.h"
|
36 | 36 |
|
37 | 37 | static BTMetaPageData *_bt_getmeta(Relation rel, Buffer metabuf);
|
| 38 | +static void _bt_log_reuse_page(Relation rel, BlockNumber blkno, |
| 39 | + TransactionId latestRemovedXid); |
| 40 | +static TransactionId _bt_xid_horizon(Relation rel, Relation heapRel, Page page, |
| 41 | + OffsetNumber *deletable, int ndeletable); |
| 42 | +static bool _bt_lock_branch_parent(Relation rel, BlockNumber child, |
| 43 | + BTStack stack, Buffer *topparent, OffsetNumber *topoff, |
| 44 | + BlockNumber *target, BlockNumber *rightsib); |
38 | 45 | static bool _bt_mark_page_halfdead(Relation rel, Buffer leafbuf,
|
39 | 46 | BTStack stack);
|
40 | 47 | static bool _bt_unlink_halfdead_page(Relation rel, Buffer leafbuf,
|
41 | 48 | BlockNumber scanblkno,
|
42 | 49 | bool *rightsib_empty,
|
43 | 50 | TransactionId *oldestBtpoXact,
|
44 | 51 | uint32 *ndeleted);
|
45 |
| -static TransactionId _bt_xid_horizon(Relation rel, Relation heapRel, Page page, |
46 |
| - OffsetNumber *deletable, int ndeletable); |
47 |
| -static bool _bt_lock_branch_parent(Relation rel, BlockNumber child, |
48 |
| - BTStack stack, Buffer *topparent, OffsetNumber *topoff, |
49 |
| - BlockNumber *target, BlockNumber *rightsib); |
50 |
| -static void _bt_log_reuse_page(Relation rel, BlockNumber blkno, |
51 |
| - TransactionId latestRemovedXid); |
52 | 52 |
|
53 | 53 | /*
|
54 | 54 | * _bt_initmetapage() -- Fill a page buffer with a correct metapage image
|
|
0 commit comments