ActiveRecord::StatementInvalid: PG::ReadOnlySqlTransaction: - Heroku database still read only even after unfollow

前端 未结 1 807
名媛妹妹
名媛妹妹 2021-01-25 07:51

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

相关标签:
1条回答
  • 2021-01-25 08:20

    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

    0 讨论(0)
提交回复
热议问题