Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion samples/Z0DAN/zodan.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,10 @@ BEGIN
dbname := TRIM(BOTH '''' FROM dbname);
END IF;
IF dbname IS NULL THEN dbname := 'pgedge'; END IF;
slot_name := left('spk_' || dbname || '_' || rec.node_name || '_sub_' || rec.node_name || '_' || new_node_name, 64);

slot_name := spock.spock_gen_slot_name(
dbname, rec.node_name,
'sub_' || rec.node_name || '_' || new_node_name);

remotesql := format('SELECT slot_name, lsn FROM pg_create_logical_replication_slot(%L, ''spock_output'');', slot_name);
IF verb THEN
Expand Down