【发布时间】:2020-03-10 17:52:47
【问题描述】:
我是 PostgreSQL 新手,我正在尝试设置从我们的服务器到笔记本电脑上的测试数据库的流复制。我一直在关注本教程 https://www.percona.com/blog/2018/09/07/setting-up-streaming-replication-postgresql/ 以及此处的 Postgres 文档 https://www.postgresql.org/docs/11/runtime-config-replication.html。
我正在运行 Windows 10、PostgreSQL 11、PostGIS 2.5 扩展。
服务器和我的本地机器都一直在关闭,并且日志中充满了 postmaster.pid 错误,例如:
LOG: performing immediate shutdown because data directory lock file is invalid
LOG: received immediate shutdown request
LOG: could not open file "postmaster.pid": No such file or directory
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
谁能指出我这里的问题?我知道我的服务器配置不正确,但我只是不知道需要更改哪些配置。
这是我的备用服务器最新日志的图像。 standby log 这是我的主服务器最新日志的图像。 master log
【问题讨论】:
标签: postgresql streaming replication