How to deal with `.partial` WAL segments generated by Postgres `pg_receivewal` command?
Hmm, good question.

I suggest that you rename it and fill it with zeros at the end, for example using

dd if=/dev/zero of=000000010000000C00000080 oflag=append conv=notrunc bs=1024 count=16416


This could be part of your restore_command.