> bugs, as an intermediate version of my 0003 patch didn't trigger the > tests to fail
It all fails on master - could you please detail what is "intermediate" in that case? Also, I think it is a good idea to add the same type of test to btree.
> * XXX: In the future we should probably reorder these operations so > * we can apply the checks in block order, rather than index order.
I think it is already done in your patch, no?
Should we when use that mechanics for btree as well? It seems to be straight forward and non-invasive. In such case, "Unchecked" goes away, and it is each AM responsibility to call the check while holding the pin.