Dear Ayush,
> It seems we should add it here to, attached patch does that.
> [Added a TAP test in patch, but I dont think it needs to be committed]
LGTM. I also think the test is not needed.
> I wonder if we should make the same change in libpqwalreceiver too.
I feel it should be, see attached. It could be combined with your patch.
I grepped the source with the keyword "scanf\(.*%X/%08X", and I could
not find other places where pg_parse_lsn() is usable as-is.
Best regards,
Hayato Kuroda
FUJITSU LIMITED