Hi, The function comment of RestoreBlockImage() seems not correct since it returns a boolean, not the buffer number.
/* * Restore a full-page image from a backup block attached to an XLOG record. * * Returns the buffer number containing the page. */ bool RestoreBlockImage(XLogReaderState *record, uint8 block_id, char *page) Attached the patch that fixes it. Regards, -- Masahiko Sawada EnterpriseDB: https://www.enterprisedb.com/
fix_typo_xlogreader.patch
Description: Binary data