Fujii Masao <masao(dot)fujii(at)gmail(dot)com> writes:
> I applied your suggested changes into the patch. Patch attached.
That looks pretty sane to me (but I just eyeballed it, didn't test).
One further minor improvement would be to rearrange the
XLOG_GIN_VACUUM_DATA_LEAF_PAGE case so that we don't bother calling
XLogRecGetBlockData() if there's a full-page image.
regards, tom lane