how do i wipe a postgres service?
ignisda
HOBBYOP

2 years ago

same as title

22 Replies

ignisda
HOBBYOP

2 years ago

N/A


2 years ago

click on the volume, click settings, click wipe


ignisda
HOBBYOP

2 years ago

and i suppose the postgres service will need to be resatrted?


ignisda
HOBBYOP

2 years ago

nvm


2 years ago

it should redeploy itself automatically, at least it has every time ive done it


ignisda
HOBBYOP

2 years ago

it happens automatically


ignisda
HOBBYOP

2 years ago

yeah thanks


2 years ago

no problem!


ignisda
HOBBYOP

2 years ago

@Brody I notiiced that once the postgres service is resatrted, the service that is connected to postgres is not.


ignisda
HOBBYOP

2 years ago

so the service is essentially working with an incorrect database.


ignisda
HOBBYOP

2 years ago

is this expected behaviour?


2 years ago

in this case, why does the service need to be restarted?


ignisda
HOBBYOP

2 years ago

the database has been reset. there is no way the application will be able to query the database.


ignisda
HOBBYOP

2 years ago

since the tables to query have been removed


2 years ago

yeah what did you expect to happen lol


ignisda
HOBBYOP

2 years ago

my thinking is that the application should be redeployed so that the migrations are run again


2 years ago

thats something you would need to handle in app


2 years ago

or call the api somewhere


ignisda
HOBBYOP

2 years ago

hmm yeah makes sense.


ignisda
HOBBYOP

2 years ago

it would depend on the use case.


2 years ago

i think it would be a bad assumption for railway to redeploy any service that is referencing the database variables when the database redeploys


ignisda
HOBBYOP

2 years ago

yep agreed.


Loading...