HEROKU transfer pg_restore error could not execute query ERROR role b1ahbl4h does not exist
Following the instructions from the Postgres Backup and Restore guide (https://blog.railway.app/p/postgre-backup).
Neither the general nor Heroku-specific instructions were working for me.
I keep getting the same error 37 times:
The article section on
pg_restore
specific to Heroku (https://blog.railway.app/p/postgre-backup#heroku-specific-instructions) doesn't seem to actually differ from the general pg_restore
method.
Could the issue be that the article is missing the --no-owner
flag?
To test, I ran this:
pg_restore -U postgres -h containers-us-west-##.railway.app -p 7180 -W -F t --no-owner -d railway latest.dump
And it worked.
Is this correct? If so, should the article be updated?Railway Blog
How to Backup and Restore Your Postgres Database
In this post, we will go over the process of backing up and restoring your Postgres database hosted on Railway.
3 Replies
I think so, I will add this to the guide. I think its a timescale thing
Thanks for flagging!!!
Glad I could help!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View