Postgres:pg_rewind成功,即使出现错误“使用不正确的prev-link记录”

时间:2019-01-29 13:26:34

标签: postgresql

当我尝试将archive_mode设置为on的旧主服务器作为新备用数据库时,pg_rewind不会引发任何错误,但是,当数据库启动时,以下内容错误出现:

LOG:  invalid record length at 0/B000098: wanted 24, got 0
LOG:  started streaming WAL from primary at 0/B000000 on timeline 2
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098
FATAL:  terminating walreceiver process due to administrator command
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098
LOG:  record with incorrect prev-link 10000/21B0000 at 0/B000098

是否有其他工具可以在启动数据库之前检测到此问题?另外,有什么解决方法吗?

0 个答案:

没有答案