[Pkg-postgresql-public] Bug#865421: Purging old postgres stops all instances

Stefan Bühler source at stbuehler.de
Wed Jun 21 10:41:36 UTC 2017


Package: postgresql-client-common
Version: 181

Hi,

I installed postgresql-9.6, upgraded the cluster (dropping the new empty
one, pg_upgradecluster, dropping the old one), and then purged
postgresql-9.4, and suddenly my 9.6 cluster is down (probably triggers
with simple remove too).

The postgresql-9.4 (and 9.6) prerm script calls "stop_version $VERSION"
from /usr/share/postgresql-common/maintscripts-functions, which stops
postgresql ("all clusters") if:

[ -x /etc/init.d/postgresql ] && [ ! -x /etc/init.d/postgresql-$1 ]

I only have /etc/init.d/postgresql, but no /etc/init.d/postgresql-*.
This probably got lost with systemd.

cheers,
Stefan



More information about the Pkg-postgresql-public mailing list