highandover
highandover
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
Can't drop the database via pgadmin4 (assume due to user permissions).
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
Cool thanks. Will give it a try with pgadmin4
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
OK no worries, thanks for the help anyway. Next question — how can I actually go about dropping my database? Doesn't seem it's possible via the Railway interface (I can delete the service but that doesn't seem the right action).
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
I'd read "--clean" should work but it doesn't appear to.
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
But I'll give it a go.
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
I just fear the restore will still fail if I drop it which will leave me in an even worse position.
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
Snap — yes.
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
But it's OK if the data in it is overwritten.
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
Yeah it does.
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
Found a reddit post related to this issue: https://www.reddit.com/r/PostgreSQL/comments/xe832f/restore_error/ On there someone I should do this:
drop database <db_name>;
create database <db_name>;
drop database <db_name>;
create database <db_name>;
Then restore to the new database. Is that right? Feels a bit scary to drop the DB without being sure it'll work...
20 replies
RRailway
Created by highandover on 5/15/2024 in #✋|help
Unable to restore postgres database from back-up file
76c6f0bb-2ca0-4c7c-803f-e1ae1fba90ca
20 replies
RRailway
Created by highandover on 3/19/2024 in #✋|help
Taking back-up of postgres database
Sorry — I realised there's such a thing as google. Found the answer. Moving back to Solved.
8 replies
RRailway
Created by highandover on 3/19/2024 in #✋|help
Taking back-up of postgres database
Sorry — not quite "Solved" yet. I followed the guide: https://blog.railway.app/p/postgre-backup I managed to export my Database to my local machine no worries. Then I started a new project on Railway with a new instance of Postgres and was able to use the
pg_restore
pg_restore
command to upload my database dump without issues. However, when I then ran the
pg_restore
pg_restore
command to restore my database to the same instance I took the dump from it didn't run. A stream of errors were output in the terminal and seeminly no changes were made to my original database. Have I mis-understood how the
pg_restore
pg_restore
command actually works? I thought it would overwrite my database with the contents of the dump file. is that not the case? Sorry if this is a n00b question — all a bit new to me.
8 replies
RRailway
Created by highandover on 3/19/2024 in #✋|help
Taking back-up of postgres database
Thanks @Brody — I've not been able to upgrade to v16 on my Mac using Homebrew but trying to install v16 direct from the installer package now.
8 replies
RRailway
Created by highandover on 3/19/2024 in #✋|help
Taking back-up of postgres database
76c6f0bb-2ca0-4c7c-803f-e1ae1fba90ca
8 replies