KMail - Fix postgres db cluster upgrade failed error
After a recent update on Calculate Linux (Gentoo-based), KMail stopped launching and running it from the terminal showed the following error as the root cause of failure:
Postgres db cluster upgrade failed, Akonadi will fail to start. Sorry.
The update process had bumped up PostgreSQL from version 16 to 17, and that’s where the problem lied. Fixing this with all the KMail data intact turned out to be a relatively simpler task.