Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfUkR-0001Ci-Mk for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 18 Nov 2020 21:12:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfUkQ-00088h-D6 for pgsql-pkg-debian@arkaria.postgresql.org; Wed, 18 Nov 2020 21:12:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfUkQ-00088a-88 for pgsql-pkg-debian@lists.postgresql.org; Wed, 18 Nov 2020 21:12:14 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfUkM-0004py-Kw for pgsql-pkg-debian@lists.postgresql.org; Wed, 18 Nov 2020 21:12:12 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1471:c340:37ef:f16d:f24e:cdd2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4CbwVb5d58z3Dyp; Wed, 18 Nov 2020 22:12:07 +0100 (CET) Date: Wed, 18 Nov 2020 22:12:06 +0100 From: Christoph Berg To: Don Seiler Cc: pgsql-pkg-debian@lists.postgresql.org Subject: Re: Ubuntu Unattended Upgrades Message-ID: <20201118211206.GA412486@msg.df7cb.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Don Seiler > We had assumed since unattended-upgrade doesn't include PGDG that it > wouldnt upgrade the existing packages, but apparently that doesn't prevent > it from "upgrading" them to the Ubuntu equivalent, which then also restarts > the databases. It seems this is only a problem with postgresql-10 on Ubuntu > Bionic since Bionic provides its own postgresql-10 packages. Hmm, I wasn't aware that Ubuntu's (?) default unattended-upgrades config makes it upgrade Ubuntu packages only. > Alternatively, is it possible to install the new packages but *NOT* restart > the DB automatically? I understand that a DB restart would be required to You can install a /usr/sbin/policy-rc.d file [1]. That will allow filtering the start/stop actions issued by package activity. [1] https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt > run on the new version but curious if we could have the packages installed > prior and then restart at the next available window (although installation > doesn't really take that long, just curious). Restarting after install is actually the default since a while ago. (Previously packages were doing stop-upgrade-start.) Christoph