Skip to content

Commit

Permalink
PostgreSQL: accept only normal item pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Safonov committed Aug 1, 2022
1 parent 850dc60 commit 6ed0263
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions format/postgres/flavours/postgres14/pgheap.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ func decodeTuples(d *decode.D) {
if id.lpOff == 0 || id.lpLen == 0 {
continue
}
if id.lpFlags != common.LP_NORMAL {
continue
}

pos := int64(page.pagePosBegin)*8 + int64(page.itemIds[i].lpOff)*8
tupleDataLen := id.lpLen - SizeOfHeapTupleHeaderData
Expand Down

0 comments on commit 6ed0263

Please sign in to comment.