Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDWjJ-0000Nd-Op for pgsql-general@arkaria.postgresql.org; Sat, 11 Nov 2017 14:25:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eDWjJ-0005kO-B3 for pgsql-general@arkaria.postgresql.org; Sat, 11 Nov 2017 14:25:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eDWgn-0001Ps-1t for pgsql-general@PostgreSQL.org; Sat, 11 Nov 2017 14:23:17 +0000 Received: from [81.187.18.107] (helo=pye-srv-01.telemetry.co.uk) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eDWgj-0003hv-AU for pgsql-general@PostgreSQL.org; Sat, 11 Nov 2017 14:23:15 +0000 Received: from pye-srv-01.telemetry.co.uk (IDENT:2@localhost [127.0.0.1]) by pye-srv-01.telemetry.co.uk (8.12.4/8.12.4) with ESMTP id vABEN71M000569 for ; Sat, 11 Nov 2017 14:23:07 GMT Received: (from daemon@localhost) by pye-srv-01.telemetry.co.uk (8.12.4/8.12.4/Submit) id vABEN7qi000568; Sat, 11 Nov 2017 14:23:07 GMT From: Mark Morgan Lloyd Subject: Re: pg on Debian servers Date: Sat, 11 Nov 2017 14:23:06 +0000 Organization: KDG Telemetry Message-ID: References: <20171111132805.twahvztncovbp3gt@duplicate.msg.df7cb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-Reply-To: <20171111132805.twahvztncovbp3gt@duplicate.msg.df7cb.de> Content-Language: en-GB To: pgsql-general@PostgreSQL.org X-Host-Lookup-Failed: Reverse DNS lookup failed for 81.187.18.107 (failed) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 11/11/17 13:45, Christoph Berg wrote: > Re: Magnus Hagander 2017-11-11 >>> Is there any way that either the package maintainer or a site >>> administrator/programmer such as myself can mark the Postgres server >>> packages as "manual upgrade only" or similar? Or since I'm almost certainly >>> not the first person to be bitten by this, is there a preferred hack in >>> mitigation? >> >> >> Certainly. Unrelated to PostgreSQL, this is a standard feature in Debian. >> Commonly used to prevent things like kernel upgrades from happening on the >> same schedule as others. >> >> Basically, you put the package "on hold". See the debian administratino >> guide at >> https://debian-administration.org/article/67/Preventing_Debian_Package_Upgrades > > Another thing you can do is preventing package upgrades from > stopping/starting services by using a policy-rc.d: > > https://jpetazzo.github.io/2013/10/06/policy-rc-d-do-not-start-services-automatically/ > https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt > > However, if you do that, you need to take measures to actually restart > into the new version manually later. Thanks Christoph, Magnus and Rob (and anybody else whose contribution I've not seen yet :-) I think that the "preventing upgrades" route is the one to follow, since inhibiting the restart would obviously present a risk that something loaded dynamically could get out of step. As an at least temporary hack I've disabled unattended updates using # systemctl disable unattended-upgrades.service This is obviously a system which is deeply isolated from public exposure. In the general case I'd caution against any attempt to edit the content of /etc/init.d on recent versions of Debian, since I've come across at least one package that puts a file in there and then ignores both it and the associated control in /etc/default. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general