Hi, While reading DecodeXLogRecord(), I noticed that one error path checks blk->bimg_len but prints blk->data_len. The latter is the length of resource manager data and can be unrelated to the malformed block image. [I'm assuming intention was always to print blk->bimg_len]
The attached patch reports bimg_len instead. The typo was introduced with WAL compression in 57aa5b2bb11 and is present in all supported branches, so I think it should be backpatched through 14? Thoughts? Regards, Ayush
v1-0001-Fix-WAL-block-image-length-diagnostic.patch
Description: Binary data
