Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggtVg-00042S-DE for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jan 2019 15:41:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggtVe-0003m4-09 for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Jan 2019 15:41:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggtVd-0003lx-LE for pgsql-hackers@lists.postgresql.org; Tue, 08 Jan 2019 15:41:41 +0000 Received: from dd6214.kasserver.com ([85.13.131.7]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggtVa-0005Dd-8P for pgsql-hackers@postgresql.org; Tue, 08 Jan 2019 15:41:40 +0000 Received: from niheb.land.credativ.lan (fw-front.credativ.com [62.154.226.94]) by dd6214.kasserver.com (Postfix) with ESMTPSA id 5FDA21BC0491; Tue, 8 Jan 2019 16:41:35 +0100 (CET) Message-ID: <457698805e88b7692300586bef905c1f9cac72e1.camel@oopsware.de> Subject: Re: Offline enabling/disabling of data checksums From: Bernd Helmle To: Fabien COELHO Cc: Michael Banck , Magnus Hagander , Michael Paquier , Postgres hackers Date: Tue, 08 Jan 2019 16:41:35 +0100 In-Reply-To: References: <20181221201616.GD4974@nighthawk.caipicrew.dd-dns.de> <20181227011534.GD2106@paquier.xyz> <1546945543.32387.8.camel@credativ.de> <65e4f3684f7563acc8b309393b8e14388b5eae0d.camel@oopsware.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.3 (3.30.3-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am Dienstag, den 08.01.2019, 16:17 +0100 schrieb Fabien COELHO: > > > Adding a new state to ControlFileData which would prevent it from > > > starting? > > > > But then you have to make sure the control flag gets cleared in any > > case pg_verify_checksums crashes somehow or gets SIGKILL'ed ... > > The usual approach is a restart with some --force option? > > > Setting the checksum flag is done after having finished all blocks, > > so > > there is no problem. > > There is also a problem if the db is started while the checksum is > being > enabled. What i mean is that interrupting pg_verify_checksums won't leave pg_control in a state where starting the cluster won't work without any further interaction. Bernd.