Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove postgresql service from systemctl after upgrade

After upgrading Postgresql version on Debian, I noticed that the old version of postgres continues to appear.

$ systemctl | grep postgresql

[email protected]    loaded failed failed     PostgreSQL Cluster oldversion-main

[email protected]    loaded active running      PostgreSQL Cluster newversion-main

How can I remove "oldversion"?

PS. I've already removed "oldversion" using apt-get remove

Thanks

like image 300
Babakness Avatar asked Aug 12 '26 06:08

Babakness


1 Answers

I've faced the same problem after upgrading from 9.4 to 9.6 from jessie-backports. You only have to reset the failed state of the 9.4 cluster:

# systemctl reset-failed
like image 141
ortegaga Avatar answered Aug 19 '26 18:08

ortegaga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!