Reputation: 1053
I got to a scenario where it says publication does not exist, although it does. I suspect what caused this is the order the scripts ran on publisher and subscriber servers.
Is it valid to create "Replication slot", subscriber and publisher at any order?
Upvotes: 1
Views: 1136
Reputation: 247575
Creating the subscription will create the replication slot by default, but you can opt to create the slot beforehand.
You can create a subscription before you create the publication, but then you'd have to refresh the subscription with ALTER SUBSCRIPTION ... REFRESH PUBLICATION
.
Upvotes: 1