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