Package: postgresql-common Version: 241 Severity: normal X-Debbugs-Cc: athos.ribe...@canonical.com
Dear Maintainer, As it is being discussed in [1], a recent change in debhelper resulted in the following new snipped being added in postgresql-common preinst script: # Automatically added by dh_installsystemd/13.7.1 if [ -z "${DPKG_ROOT:-}" ] && [ "$1" = upgrade ] && [ -d /run/systemd/system ] ; then deb-systemd-invoke stop 'postgresql.service' >/dev/null || true fi # End automatically added section While the original intention is a fix to the service restarting process during a package upgrade, this will result in the postgres service being stopped upon postgresql-common upgrades since the the package was designed to avoid (re)starts on installs/upgrades [3]. In Ubuntu, this also resulted in a test suite regression (as described in [1]) since the following delta is present: [4]. Introducing the --no-stop-on-upgrade option as proposed in [5] would restore the preinst script to its previous state before [2] was introduced in debhelper. [1] https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1973382 [2] https://salsa.debian.org/debian/debhelper/-/commit/742b0c5ac8f4a6cfcd699f08915a8109a5ebec35 [3] https://salsa.debian.org/postgresql/postgresql-common/-/blob/master/debian/rules#L27-31 [4] https://salsa.debian.org/pkg-debconf/debconf/-/merge_requests/10/diffs#8c2015059db93e56eaf3ed8ea7a2c9bf142c0c8f_198_197 [5] https://code.launchpad.net/~athos-ribeiro/ubuntu/+source/postgresql-common/+git/postgresql-common/+merge/422669