I'm having a problem restoring a copy of a PostgreSQL database to another server.
I have taken a backup using the pg_basebackup
tool and can restore that but when I restore WAL logs from the archive I get this error
WAL file is from different database system: WAL file database system identifier is 6355383437015733568
, pg_control
database system identifier is 6366125487137379747
Though the source database reports it's identifier as WAL file is from different database system: WAL file database system identifier is 6355383437015733568
, pg_control
database system identifier as 6366125487137379747
I am 100% certain the the WAL archive is from the correct source it just looks like the WAL files have the wrong id . any ideas how to resolve ? a pg_xlogreset
in the source db made no difference
Version 9.6 on Amazon Linux all fully patched
Thanks