diff options
Diffstat (limited to 'src/include/access/nbtree.h')
-rw-r--r-- | src/include/access/nbtree.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/access/nbtree.h b/src/include/access/nbtree.h index 4bb5db0513e..35b6c94e7e2 100644 --- a/src/include/access/nbtree.h +++ b/src/include/access/nbtree.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: nbtree.h,v 1.65 2003/02/22 00:45:05 tgl Exp $ + * $Id: nbtree.h,v 1.66 2003/02/23 06:17:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -118,6 +118,8 @@ typedef struct BTItemData typedef BTItemData *BTItem; +#define CopyBTItem(btitem) ((BTItem) CopyIndexTuple((IndexTuple) (btitem))) + /* * For XLOG: size without alignment. Sizeof works as long as * IndexTupleData has exactly 8 bytes. @@ -434,6 +436,7 @@ extern Datum btvacuumcleanup(PG_FUNCTION_ARGS); */ extern InsertIndexResult _bt_doinsert(Relation rel, BTItem btitem, bool index_is_unique, Relation heapRel); +extern Buffer _bt_getstackbuf(Relation rel, BTStack stack, int access); extern void _bt_insert_parent(Relation rel, Buffer buf, Buffer rbuf, BTStack stack, bool is_root, bool is_only); @@ -448,8 +451,10 @@ extern void _bt_relbuf(Relation rel, Buffer buf); extern void _bt_wrtbuf(Relation rel, Buffer buf); extern void _bt_wrtnorelbuf(Relation rel, Buffer buf); extern void _bt_pageinit(Page page, Size size); +extern bool _bt_page_recyclable(Page page); extern void _bt_metaproot(Relation rel, BlockNumber rootbknum, uint32 level); extern void _bt_itemdel(Relation rel, Buffer buf, ItemPointer tid); +extern int _bt_pagedel(Relation rel, Buffer buf, bool vacuum_full); /* * prototypes for functions in nbtsearch.c @@ -488,7 +493,6 @@ extern BTItem _bt_formitem(IndexTuple itup); /* * prototypes for functions in nbtsort.c */ - typedef struct BTSpool BTSpool; /* opaque type known only within nbtsort.c */ extern BTSpool *_bt_spoolinit(Relation index, bool isunique); |