I wanted to copy a database from one app to another in heroku. I have an issue with indexes forcing me to do this using a follower db and then unfollowing.
My problem i
After a while the database became writable again. I'm attaching the answer I got from heroku support:
When you unfollowed the primary database, was the follower completely up to date? If the follower has a bunch of built up WAL it can sometimes leave the database in recovery until it is able to ro replay all of the WAL.
And indeed when you do a pg:info
and have a follower db you can see a Behind By
field showing you how many commits your follower is behind by.
Mine was way behind, so it took it a while to catch up...
Probably a good idea to add this to the heroku postgres documentation