测试从pg_receivewal的日志中恢复从库为主库: 主从配置async模式,配置pg_receivewal接收日志pg_receivewal -D /dbaas/pg/data/pg_receivewal_data -v -h 10.9.10.202 主插入1000万数据,当插入一半时,停止从库 主库插完数据,停止 将pg_receivewal的日志拷贝到从库/dbaas/pg/data/pg_receivewal_data下 修改从库recovery.conf文件,添加内容: resto…