I'm trying to create a hot standby. I've replicated the primary with pg_basebackup and configured recovery on the standby however the logs repeatedly show:
cp: cannot stat '/var/lib/postgresql/15/backup/00000002.history': No such file or directory
LOG: entering standby mode
LOG: restored log file "000000010000BBAC000000CA" from archive
LOG: contrecord is requested by BBAC/CA000028
This is not the latest WAL segment as such the standby is not updating. Is there a way to recover the history file so the standby can continue with WAL recovery?
Many thanks,
Simon