文章目录
删除订阅报错
test=# drop subscription test_slot_sub ;ERROR: could not connect to publisher when attempting to drop the replication slot "test_slot_sub"DETAIL: The error was: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5433? HINT: Use ALTER SUBSCRIPTION ... SET (slot_name = NONE) to disassociate the subscription from the slot.test=#
test=# drop subscription test_slot_sub ;ERROR: could not drop the replication slot "test_slot_sub" on publisher DETAIL: The error was: ERROR: replication slot "test_slot_sub" does not exist test=#
alter subscription test_slot_sub disable;ALTER SUBSCRIPTION test_slot_sub SET (slot_name = NONE);drop subscription test_slot_sub ;
复制槽管理说明
每一个(活跃的)订阅会从远(发布)端上的一个复制槽接收更改。通常,远程复制槽是在使用CREATE SUBSCRIPTION创建订阅是自动创建的,并且在使用DROP SUBSCRIPTION删除订阅时,复制槽也会自动被删除。不过,在一些情况下,有必要单独操纵订阅以及其底层的复制槽。如下场景:
编辑推荐:
- 逻辑复制-删除订阅报错03-14
- ACID(Force & Steal)03-14
- PostgreSQL 源码解读(264)- PG 14(Speeding up recovery and VACUUM)03-14
- postgresql create index concurrently过程描述03-14
- 获取表的ddl03-14
- PostgreSQL PSQL tips03-14
- PostGreSql12.6的备份恢复03-14
- 初识PostGresql03-14
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- TBase-开源版本安装部署(超详细)
TBase-开源版本安装部署(超详细)
26-03-14 - PostgreSQL高可用:多主复制解决方案
PostgreSQL高可用:多主复制解决方案
26-03-14 - PG和MySQL详细的一些特性对比
PG和MySQL详细的一些特性对比
26-03-14 - Redash中文版以PostgreSQL为例设置用户权限
Redash中文版以PostgreSQL为例设置用户权限
26-03-14 - postgresql:pgbench基准性能测试
postgresql:pgbench基准性能测试
26-03-14 - PostgreSQL email list:nvm wal buffer
PostgreSQL email list:nvm wal buffer
26-03-14 - RockyLinux sg命令详解(以其他组身份安全执行命令的完整教程)
RockyLinux sg命令详解(以其他组身份安全执行命令的完整教程)
26-03-14 - PostgreSQL:表
PostgreSQL:表
26-03-14 - PostgreSQL:锁
PostgreSQL:锁
26-03-14 - PostgreSQL TPROC-C基准测试:PostgreSQL 12与PostgreSQL 13性能对比
