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 1nX4ix-00009z-Fg for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2022 17:24:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nX4iw-0007na-7h for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2022 17:24:42 +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 1nX4iv-0007nM-UJ for pgsql-hackers@lists.postgresql.org; Wed, 23 Mar 2022 17:24:41 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nX4it-0003kh-NT for pgsql-hackers@postgresql.org; Wed, 23 Mar 2022 17:24:40 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 2D0EB3201D5E; Wed, 23 Mar 2022 13:24:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 23 Mar 2022 13:24:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date: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; bh=oUjATZicWyglKsOWsgwyI74RRRYGWjMRoXO7dWjf1P4=; b=IsFkf5pL 1W/ZKh7XbKPLlaPOIPUdacxK/hNo9sBRcVsjUUPiES3CajcOBaVc4Y4wcApGBMWN Rr/QXujngns+aeK5cvLjpdM5tmKkqXH2KCwvleS4vYvoBs8+MkwNP1gj6TW4NN1m lu5dmpKFhoM9UVy9Yufgd6PWQkDxXCpoUw9+LtlRnWmTR1MRpaxZ5qDzksU32tg+ +iY2ozP81KZTVM45EgGKTzrIRdGu5cAqIWNula9AuGcI+7lf09Ir9SLtVA85wD70 diGJEnjbcWVbfGfVa/E4QtuS3aqL4m1kC2FkG4VCDBiTbTKIzJp5AeO2qjmdigzV GqD59NlisM8AOA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegjedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpedfrghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdfuceorghlvhhhvghrrhgvsegrlhhvhh drnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhephfdufedthfelveegjedtffdu leekiedugfdtgfdttdevteejleetgefhueeigfetnecuffhomhgrihhnpegvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Mar 2022 13:24:37 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 654A92A064C; Wed, 23 Mar 2022 14:24:49 -0300 (-03) Date: Wed, 23 Mar 2022 18:24:49 +0100 From: "alvherre@alvh.no-ip.org" To: "Imseih (AWS), Sami" Cc: Kyotaro Horiguchi , "pgsql-hackers@postgresql.org" Subject: Re: [BUG] Panic due to incorrect missingContrecPtr after promotion Message-ID: <202203231724.jabhgpfqg6dz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Mar-07, Imseih (AWS), Sami wrote: > I have gone ahead and backpatched this all the way to 10 as well. Thanks! I pushed this now. I edited the test though: I don't understand why you went to the trouble of setting stuff in order to call 'pg_ctl promote' (in different ways for older branches), when $node_standby->promote does the same and is simpler to call. So I changed the tests to do that. (I did verify that without the code fix, the PANIC indeed is thrown.) Thank again, -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/