小编Gre*_*0ry的帖子

Postgresql 11 逻辑复制 - 卡在`catchup` 状态

我正在运行两台 postgresql 11 服务器 - 主服务器和从服务器(使用逻辑复制进行设置)。

我面临的问题是,经过数周不间断工作后,今天奴隶与此错误消息不同步:

2019-09-16 07:39:44.332 CEST [30117] ERROR:  could not send data to WAL stream: server closed the connection unexpectedly
                This probably means the server terminated abnormally
                before or while processing the request.
2019-09-16 07:39:44.539 CEST [12932] LOG:  logical replication apply worker for subscription "logical_from_master" has started
2019-09-16 07:39:44.542 CEST [27972] LOG:  background worker "logical replication worker" (PID 30117) exited with exit code 1
Run Code Online (Sandbox Code Playgroud)

我之前确实看到过此错误消息,我的过程是wal_sender_timeout在 master上增加(有关此的更多详细信息:postgresql 中的逻辑复制-“服务器意外关闭了连接”

那么我想恢复复制但是复制状态卡在追赶上:

2019-09-16 07:39:44.332 CEST [30117] …
Run Code Online (Sandbox Code Playgroud)

postgresql replication

6
推荐指数
1
解决办法
3112
查看次数

标签 统计

postgresql ×1

replication ×1