检查复制槽信息
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备份后只能这样了呢,应该没啥影响吧
墨值悬赏

