Skip to content

Commit 88d6f19

Browse files
committed
fix: ensure that the test slot gets dropped
Based on a quick test, a rollback of the txn does not remove the logical replication slot that gets created.
1 parent 178df24 commit 88d6f19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
BEGIN;
22
select pg_drop_replication_slot(slot_name) from pg_replication_slots where slot_name = 'test_slot';
33
select * from pg_create_logical_replication_slot('test_slot', 'wal2json');
4+
select pg_drop_replication_slot(slot_name) from pg_replication_slots where slot_name = 'test_slot';
45
ROLLBACK;

0 commit comments

Comments
 (0)