Skip to content

Commit af4545b

Browse files
committed
1414 forsøker å sette opp replication slot på nytt
1 parent 96592ef commit af4545b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
DO
2+
$$
3+
BEGIN
4+
IF EXISTS(SELECT * FROM pg_roles WHERE rolname = 'tpts_ds') THEN
5+
PERFORM PG_CREATE_LOGICAL_REPLICATION_SLOT('ds_replication', 'pgoutput');
6+
END IF;
7+
END
8+
$$ LANGUAGE 'plpgsql';

0 commit comments

Comments
 (0)