While upgrading to Ubuntu 19.04, the release upgrader removed postgresql-10. To make matters worse, apt/dpkg did NOT ask whether the databases should be kept and simply removed all of them.
I believe this is due to removal_blacklist.cfg containing ^postgresql-.*[0-9]\.[0-9].*, which does not match newer releases such as postgresql-10 as it expects an X.Y version scheme. Something like ^postgresql-.*[0-9].* should probably be added in addition.
While upgrading to Ubuntu 19.04, the release upgrader removed postgresql-10. To make matters worse, apt/dpkg did NOT ask whether the databases should be kept and simply removed all of them.
I believe this is due to removal_ blacklist. cfg containing ^postgresql- .*[0-9] \.[0-9] .*, which does not match newer releases such as postgresql-10 as it expects an X.Y version scheme. Something like ^postgresql- .*[0-9] .* should probably be added in addition.