I'm worried that unfortunately there's not a great way to handle this.
Here's what happened:
- Schema change made in main database
- Logically replicated db has issue with subscription given the identity change
- Subscription failed
- Inactive replication slot in
pg_replication_slots
Is there anyway to get back and not lose any of the data that the WAL has written? For example, I've tried the following on the replication server:
ALTER SUBSCRIPTION "my_subscription" REFRESH PUBLICATION;
ALTER SUBSCRIPTION "my_subscription" ENABLE;
but it still doesn't work. Any thoughts?