OffsetNumber
brin_doinsert(Relation idxrel, BlockNumber pagesPerRange,
BrinRevmap *revmap, Buffer *buffer, BlockNumber heapBlk,
- BrinTuple *tup, Size itemsz)
+ const BrinTuple *tup, Size itemsz)
{
Page page;
BlockNumber blk;
*/
static int32
writeListPage(Relation index, Buffer buffer,
- IndexTuple *tuples, int32 ntuples, BlockNumber rightlink)
+ const IndexTuple *tuples, int32 ntuples, BlockNumber rightlink)
{
Page page = BufferGetPage(buffer);
int32 i,
static void _bt_insert_parent(Relation rel, Relation heaprel, Buffer buf,
Buffer rbuf, BTStack stack, bool isroot, bool isonly);
static Buffer _bt_newlevel(Relation rel, Relation heaprel, Buffer lbuf, Buffer rbuf);
-static inline bool _bt_pgaddtup(Page page, Size itemsize, IndexTuple itup,
+static inline bool _bt_pgaddtup(Page page, Size itemsize, const IndexTupleData *itup,
OffsetNumber itup_off, bool newfirstdataitem);
static void _bt_delete_or_dedup_one_page(Relation rel, Relation heapRel,
BTInsertState insertstate,
static inline bool
_bt_pgaddtup(Page page,
Size itemsize,
- IndexTuple itup,
+ const IndexTupleData *itup,
OffsetNumber itup_off,
bool newfirstdataitem)
{
static BTPageState *_bt_pagestate(BTWriteState *wstate, uint32 level);
static void _bt_slideleft(Page rightmostpage);
static void _bt_sortaddtup(Page page, Size itemsize,
- IndexTuple itup, OffsetNumber itup_off,
+ const IndexTupleData *itup, OffsetNumber itup_off,
bool newfirstdataitem);
static void _bt_buildadd(BTWriteState *wstate, BTPageState *state,
IndexTuple itup, Size truncextra);
static void
_bt_sortaddtup(Page page,
Size itemsize,
- IndexTuple itup,
+ const IndexTupleData *itup,
OffsetNumber itup_off,
bool newfirstdataitem)
{
Size newsz);
extern OffsetNumber brin_doinsert(Relation idxrel, BlockNumber pagesPerRange,
BrinRevmap *revmap, Buffer *buffer, BlockNumber heapBlk,
- BrinTuple *tup, Size itemsz);
+ const BrinTuple *tup, Size itemsz);
extern void brin_page_init(Page page, uint16 type);
extern void brin_metapage_init(Page page, BlockNumber pagesPerRange,