暂无图片
ERROR: replication slot name starting with gs_roach is internally reserved
我来答
小小星月明
2023-09-03
ERROR: replication slot name starting with gs_roach is internally reserved

检查复制槽信息

gaussdb=# select slot_name,coalesce(plugin,'_') as plugin,
slot_type,datoid,coalesce(database,'_') as database,
active,coalesce(xmin,'_') as xmin,
pg_size_pretty(pg_xlog_location_diff(CASE WHEN pg_is_in_recovery() THEN pg_last_xlog_receive_location() ELSE pg_current_xlog_location() END , restart_lsn)) AS retained_bytes
from pg_replication_slots;

slot_name | plugin | slot_type | datoid | database | active | xmin | retained_bytes
---------------+--------+-----------+--------+----------+--------+------+----------------
dn_6003 | _ | physical | 0 | _ | t | 0 | 0 bytes
dn_6002 | _ | physical | 0 | _ | t | 0 | 0 bytes
gs_roach_full | _ | physical | 0 | _ | f | 0 | 128 MB
(3 rows)


清理复制槽

gaussdb=# select pg_drop_replication_slot('gs_roach_full');
ERROR: replication slot name starting with gs_roach is internally reserved
CONTEXT: referenced column: pg_drop_replication_slot

想把这个pg_roach_full删掉,有什么方案吗,还是pg_roach备份后只能这样了呢,应该没啥影响吧

我来答
添加附件
收藏
问题补充
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏