Skip to content

Commit

Permalink
PostgreSQL: ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Safonov committed Aug 4, 2022
1 parent d9de2d4 commit b722b21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions format/postgres/flavours/postgres14/common14/pgheap.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,19 +300,20 @@ func decodeTuples(d *decode.D) {
continue
}

pos := int64(page.PagePosBegin)*8 + int64(page.ItemIds[i].lpOff)*8
pos := int64(page.PagePosBegin)*8 + int64(id.lpOff)*8
tupleDataLen := id.lpLen - SizeOfHeapTupleHeaderData

// seek to tuple with ItemId offset
d.SeekAbs(pos)

// type = struct HeapTupleHeaderData {
/* 0 | 12 */ // union {
/* 12 */ // HeapTupleFields t_heap;
/* 12 */ // DatumTupleFields t_datum;
// } t_choice;
/* total size (bytes): 12 */
/*
/* 12 | 6 */ // ItemPointerData t_ctid;
//
/* 12 | 6 */ // ItemPointerData t_ctid;
/* 18 | 2 */ // uint16 t_infomask2;
/* 20 | 2 */ // uint16 t_infomask;
/* 22 | 1 */ // uint8 t_hoff;
Expand Down

0 comments on commit b722b21

Please sign in to comment.