Change postgres db name

diego-mikeTRIAL

a year ago

I just setup a postgres db, but its name is by default "railway", i've changed PGDATABASE and POSTGREDB to the name i want "linkpikdb", but when i try to connect again, it tells me that there's no db with that name, what am i missing ?

Solved

4 Replies

a year ago

those variables are single-set and only used once to set the database name on deployment, but from my experience, I strongly recommend you stick with the default name.


diego-mikeTRIAL

a year ago

So there's no way to change my db name to a custom name ?

All right, i'll stick with "railway" for now, thanks!!


a year ago

it's a bog standard postgres database, you would change the database name how you would in any other postgres database, through a query.

but considering there's already a pre-made database name, it would be by far the most convenient to use it, I can understand wanting to customise the name, but functionally speaking, it makes no difference.


Status changed to Solved railway[bot] about 1 year ago


diego-mikeTRIAL

a year ago

Got you man, thanks for the response !!!


Change postgres db name - Railway Help Station