The argument of SetBufferCommitInfoNeedsSave at _bt_check_uniquemight be not correct. When the next page is checked, I think thatthe argument is not buf but nbuf.
regards,
--- Atsushi Ogawa