could not send replication command “START_REPLICATION“: ERROR: replication slot does noes not exist

文章讲述了如何在PostgreSQL主库上创建物理复制槽,并在备库尝试接收的过程,遇到replicationslot不存在的错误,提示了使用-hdb206选项连接的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

在主库创建物理复制槽:

SELECT * FROM pg_create_physical_replication_slot('slot_s1');

在备库测试:

[postgres@db223 pg_wal]$  pg_receivewal -U postgres -D /home/postgres/pgarch/ -S test_slot -v
pg_receivewal: starting log streaming at 11C/10000000 (timeline 8)
pg_receivewal: error: could not send replication command "START_REPLICATION": ERROR:  replication slot "test_slot" does not exist
pg_receivewal: disconnected; waiting 5 seconds to try again
 

 需要指定 -h db206

 [postgres@db223 pgarch]$  pg_receivewal -h db206 -U postgres -D /home/postgres/pgarch/ -S test_slot -v
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值