how do i wipe a postgres service?
same as title
16 Replies
Project ID:
N/A
N/A
Solution
click on the volume, click settings, click wipe
and i suppose the postgres service will need to be resatrted?
nvm
it should redeploy itself automatically, at least it has every time ive done it
it happens automatically
yeah thanks
no problem!
@Brody I notiiced that once the postgres service is resatrted, the service that is connected to postgres is not.
so the service is essentially working with an incorrect database.
is this expected behaviour?
in this case, why does the service need to be restarted?
the database has been reset. there is no way the application will be able to query the database.
since the tables to query have been removed
yeah what did you expect to happen lol
my thinking is that the application should be redeployed so that the migrations are run again
thats something you would need to handle in app
or call the api somewhere
hmm yeah makes sense.
it would depend on the use case.
i think it would be a bad assumption for railway to redeploy any service that is referencing the database variables when the database redeploys
yep agreed.