【发布时间】:2021-08-20 12:30:30
【问题描述】:
我完全按照here 所做的事情。
一切都很好,直到我使用下面的命令将订阅连接到发布
CREATE SUBSCRIPTION my_subscription CONNECTION 'host=db_master_private_ip_address port=5432 password=my_password user=sammy dbname=example' PUBLICATION my_publication;
它给了我
ERROR: could not create replication slot "my_subscription": ERROR: logical decoding requires wal_level >= logical
还有其他人也遇到过这个问题吗?
编辑
我的wal_level 设置为logical
【问题讨论】:
-
Postgres 9.1 中没有
create subscription命令 - 您真正使用的是哪个版本? -
错误非常明显。在
db_master_private_ip_address上,您需要将wal_level设置为logical -
我已经完成了 wal_level 到逻辑并重新启动 postgresql 但错误仍然存在我的 Postgres 是 12
-
我倾向于相信 Postgres,而不是您声称您确实在主服务器上进行了更改
标签: postgresql postgresql-9.1 database-replication