_bt_relbuf(rel, lbuf);
if (leftsib == P_NONE)
{
- elog(LOG, "no left sibling (concurrent deletion?)");
+ elog(LOG, "no left sibling (concurrent deletion?) in \"%s\"",
+ RelationGetRelationName(rel));
return 0;
}
lbuf = _bt_getbuf(rel, leftsib, BT_WRITE);
return 0;
}
if (opaque->btpo_prev != leftsib)
- elog(ERROR, "left link changed unexpectedly");
+ elog(ERROR, "left link changed unexpectedly in block %u of \"%s\"",
+ target, RelationGetRelationName(rel));
/*
* And next write-lock the (current) right sibling.
itemid = PageGetItemId(page, nextoffset);
btitem = (BTItem) PageGetItem(page, itemid);
if (ItemPointerGetBlockNumber(&(btitem->bti_itup.t_tid)) != rightsib)
- elog(PANIC, "right sibling is not next child");
-
+ elog(PANIC, "right sibling is not next child in \"%s\"",
+ RelationGetRelationName(rel));
PageIndexTupleDelete(page, nextoffset);
}