pg_create_logical_replication_slot
select * from pg_replication_slots;
select pg_export_snapshot();
select pg_create_logical_replication_slot(‘logical_slot1’, ‘test_decoding’);
CREATE TABLE t_logical(id int4);
pg_logical_slot_get_changes
SELECT * FROM pg_logical_slot_get_changes(‘logical_slot1’, null, null);

pg_logical_slot_peek_changes
INSERT INTO t_logical VALUES (1);
SELECT * FROM pg_logical_slot_peek_changes(‘logical_slot1’, null, null);

ERROR: logical decoding cannot be used while in recovery


pg_drop_replication_slot
SELECT pg_drop_replication_slot(‘logical_slot1’);












![完全二叉树的层序遍历[天梯赛]](https://img-blog.csdnimg.cn/direct/ec467080d3654542ab81438ff509b88d.png)



![[HackMyVM]靶场quick5](https://img-blog.csdnimg.cn/direct/778da2a85f324c95935243fabfa449d3.png)

