简体   繁体   中英

Postgres Logical Replication: Replication slot, Subscriber and Publisher Creation Order Matters?

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM