Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwIGF-00Au9u-7v for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Oct 2023 08:32:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qwIGD-00DRfv-I0 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Oct 2023 08:32:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwIGC-00DRfn-5F for pgsql-hackers@lists.postgresql.org; Fri, 27 Oct 2023 08:32:05 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwIG7-0034MC-5U for pgsql-hackers@lists.postgresql.org; Fri, 27 Oct 2023 08:32:03 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AF92D5C00D9; Fri, 27 Oct 2023 04:31:56 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 27 Oct 2023 04:31:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1698395516; x= 1698481916; bh=v5qq/BLa3PpZaWQka9uKVOmh+9V593SdbndFiz25LZ4=; b=n JMtA2UCEyGA3j6O4vNYkj5W8rhwaS1JP4d/WD6aHQpvoJpjmZab4rwi/Gpr7Qo4z 2AdmaYvr2O21fRzDo7T/lxK2/6kt7kzpEGm7P+po+vU9FPJXZZhQS1Amh0NSZreC CD2mf/2KuRXoJhqoTENDKNXDofZ/xCgX2Ep67XbrSnvUES/yqg5k4RvgESYmlvb+ YuB1tabDUJB0CpFhxU8n/wpiINE9SRTAO7DeuSeziUHrMNpCF0aOcX6lIknNHQaH fTH1CT4U1AMmxzIbWV7zmuRhbm+AQlKRMT8d4I8YwkCfdi3AwQhs91P2BlypS3tQ mCbhE9qUB5K+aRYpr1lGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleeggddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkgggtugfgjgesthekre dttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftd ffffehfffhjeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegv nhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Oct 2023 04:31:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1698395514; bh=UVIJZIPvsEnExxzabrLvPQUAaIRN6Jk8h+5L/TN5M5Y=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=BGI2aelgiGAm1qvLAWlL3paZ5Ujd5Ft0t3KQaWXwEv+6BwY3J0yRUzzo/x04E78dG 7kelIOHJCowb8Jh/E8HZE3nbhQg9oVd6C/QHiNohu6TLXtuyqNtCstG43aHbiEGy75 ENu0dUBaT9Jg1L4WG7APO9mGYKWMfr0nwvfdfp2aflaW2Au7bpcECRai3+NB6Oyp/g DJhfewqQrYUPXFdpXNAVJKVXpdf6eJaTjIuqpAEXIuEVuQ9yNZW5/3+jWhhEeQM9Rt 96xnN5/gVQvvRhoFzNR+X50/cr6SOOZMFpZpFlta4doMDGHHeRdlqAYc73KXAjnkB6 qPAnFEUUy5UOw== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B98E5AD; Fri, 27 Oct 2023 10:31:54 +0200 (CEST) Date: Fri, 27 Oct 2023 10:31:54 +0200 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: pgsql-hackers@lists.postgresql.org Subject: Re: A recent message added to pg_upgade Message-ID: <202310270831.wk3ycsnxsxy2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231027.115759.2206827438943188717.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Oct-27, Kyotaro Horiguchi wrote: > @@ -1433,8 +1433,8 @@ InvalidatePossiblyObsoleteSlot(ReplicationSlotInvalidationCause cause, > { > ereport(ERROR, > errcode(ERRCODE_INVALID_PARAMETER_VALUE), > - errmsg("replication slots must not be invalidated during the upgrade"), > - errhint("\"max_slot_wal_keep_size\" must be set to -1 during the upgrade")); Hmm, if I read this code right, this error is going to be thrown by the checkpointer while finishing a checkpoint. Fortunately, the checkpoint record has already been written, but I don't know what would happen if this is thrown while trying to write the shutdown checkpoint. Probably nothing terribly good. I don't think this is useful. If the setting is invalid during binary upgrade, let's prevent it from being set at all right from the start of the upgrade process. In InvalidatePossiblyObsoleteSlot() we could have just an Assert() or elog(PANIC). -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/