Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/pg_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,14 +840,16 @@ BTReaderInit(BTReader *reader, Relation rel)
firstid = PageGetItemId(reader->page, P_FIRSTDATAKEY(opaque));
itup = (IndexTuple) PageGetItem(reader->page, firstid);

/* There's not need to exit here, Just change ItemPointerGetBlockNumber
* to ItemPointerGetBlockNumberNoCheck
if ((itup->t_tid).ip_posid == 0)
{
elog(DEBUG1, "pg_bulkload: failded in BTReaderInit for \"%s\"",
RelationGetRelationName(rel));
return -1;
}
}*/

blkno = ItemPointerGetBlockNumber(&(itup->t_tid));
blkno = ItemPointerGetBlockNumberNoCheck(&(itup->t_tid));

/* Go down to children */
for (;;)
Expand Down