That was otherwise harmless, but tripped the new assertion in
PageGetSpecialPointer().
Reported by Amit Langote. Backpatch to 9.5, where the assertion was added.
BlockNumber recurse_to;
Buffer buf;
Page page;
- BTPageOpaque opaque;
+ BTPageOpaque opaque = NULL;
restart:
delete_now = false;
info->strategy);
LockBuffer(buf, BT_READ);
page = BufferGetPage(buf);
- opaque = (BTPageOpaque) PageGetSpecialPointer(page);
if (!PageIsNew(page))
+ {
_bt_checkpage(rel, buf);
+ opaque = (BTPageOpaque) PageGetSpecialPointer(page);
+ }
/*
* If we are recursing, the only case we want to do anything with is a