R
Railway3mo ago
IgnisDa

how do i wipe a postgres service?

same as title
Solution:
click on the volume, click settings, click wipe
Jump to solution
16 Replies
Percy
Percy3mo ago
Project ID: N/A
IgnisDa
IgnisDa3mo ago
N/A
Solution
Brody
Brody3mo ago
click on the volume, click settings, click wipe
IgnisDa
IgnisDa3mo ago
and i suppose the postgres service will need to be resatrted? nvm
Brody
Brody3mo ago
it should redeploy itself automatically, at least it has every time ive done it
IgnisDa
IgnisDa3mo ago
it happens automatically yeah thanks
Brody
Brody3mo ago
no problem!
IgnisDa
IgnisDa3mo ago
@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?
Brody
Brody3mo ago
in this case, why does the service need to be restarted?
IgnisDa
IgnisDa3mo ago
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
Brody
Brody3mo ago
yeah what did you expect to happen lol
IgnisDa
IgnisDa3mo ago
my thinking is that the application should be redeployed so that the migrations are run again
Brody
Brody3mo ago
thats something you would need to handle in app or call the api somewhere
IgnisDa
IgnisDa3mo ago
hmm yeah makes sense. it would depend on the use case.
Brody
Brody3mo 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
IgnisDa3mo ago
yep agreed.
Want results from more Discord servers?
Add your server