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.96) (envelope-from ) id 1vxflF-00H1gt-0C for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2026 06:31:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vxflD-00AjBo-1Z for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2026 06:31:07 +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.96) (envelope-from ) id 1vxflD-00AjBg-0h for pgsql-hackers@lists.postgresql.org; Wed, 04 Mar 2026 06:31:07 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vxflB-00000000Ttp-1cSk for pgsql-hackers@postgresql.org; Wed, 04 Mar 2026 06:31:07 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1B4607A01E6; Wed, 4 Mar 2026 01:31:04 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Wed, 04 Mar 2026 01:31:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1772605863; x=1772692263; bh=AREt6R0oGF aRgD5WuAD/IBBYDudd8FrM5rXeQ8rExVY=; b=GSNiNKkaJTqKwF2oxruZVaKGBm pXG8qiPr6N+NL0qY8P68W98yIQHkcVKUGXZENRi2ExzgxIlrTEBKbcYPzrQD9v3X Jd6tfcmRvcQt4EBnJl2SVYga/W6huCa8Q7GWqly3Z8Yl/mpvhJr6igBeIxMaAwcZ RhMbegzIaIf2MM0XFWySJ77I6AKpED9e86IQOXPt13P+MIxANeIjahThaSL0qlt2 bNzkMBvx5v6p6fa7dpjX/HI8DVwYOs9dDTE+3twVrp0QbsTIz+xI5I6aIzn/F4Ba KqXItKx091p2YBmOh4tuDUd684oiJd4Wx1PV4v+fCG7UXjmEWBEqgHuDGn1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1772605863; x=1772692263; bh=AREt6R0oGFaRgD5WuAD/IBBYDudd8FrM5rX eQ8rExVY=; b=xtSrekNPhHStLRSYDX4hI7ax4CndRp/SIEuDrci3OALj3s1woBy 9nlAKG6LVHD+Ps9dG9Olcy0PiJcxH0l+fDqJttVdxR/BxC2urpjNsSWSy4Wq0meH /m0fUpqeOGX8KY0TIYMhJk1nmw+EQq8gw56oU1T07lK8z+TDyuxSmWfuEsuY7Ahv 8ZxIO0Ymz+6GwRHxWXImrw5QOfT9nBBsJAFcB3uy5DEtfPwXHjV2NPwLwGLGlEnm ZH3zJ3Qj8mCjXETAW3rLtbicStycQm78hSr4wi8/hsbPGyvlJjCzH0u75LpSVelm Cso+oQHGxGt9Wm4r3Mb7dxgw3TnWfBLiedA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddviedvjeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkhhurh houggrrdhhrgihrghtohesfhhujhhithhsuhdrtghomhdprhgtphhtthhopegvgigtlhhu shhiohhnsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsh esphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprghlvghkshgrnhguvghrseht ihhmvghstggrlhgvrdgtohhm X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Mar 2026 01:31:02 -0500 (EST) Date: Wed, 4 Mar 2026 15:30:58 +0900 From: Michael Paquier To: "Hayato Kuroda (Fujitsu)" Cc: 'Alexander Lakhin' , pgsql-hackers , Aleksander Alekseev Subject: Re: BUG: Former primary node might stuck when started as a standby Message-ID: References: <045cab6f-4738-417e-b551-01adba44d6c3@gmail.com> <493401a8-063f-436a-8287-a235d9e065fc@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JkqBI624jl5THtZz" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --JkqBI624jl5THtZz Content-Type: multipart/mixed; boundary="V8WgjJeMx8hg9gCB" Content-Disposition: inline --V8WgjJeMx8hg9gCB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 04, 2026 at 03:29:35PM +0900, Michael Paquier wrote: > I'll push this fix shortly, taking care of one instability. Nice > investigation on this one, Alexander, by the way. With the patch attached, for reference.. -- Michael --V8WgjJeMx8hg9gCB Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=2pc-tap-fix.patch Content-Transfer-Encoding: quoted-printable diff --git a/src/test/recovery/t/009_twophase.pl b/src/test/recovery/t/009_= twophase.pl index 879e493b5b83..aa73d3e106c5 100644 --- a/src/test/recovery/t/009_twophase.pl +++ b/src/test/recovery/t/009_twophase.pl @@ -222,7 +222,7 @@ $cur_primary->psql( SAVEPOINT s1; INSERT INTO t_009_tbl VALUES (22, 'issued to ${cur_primary_name}'); PREPARE TRANSACTION 'xact_009_10';"); -$cur_primary->teardown_node; +$cur_primary->stop; $cur_standby->promote; =20 # change roles --V8WgjJeMx8hg9gCB-- --JkqBI624jl5THtZz Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmn0aIACgkQnvQgOdby QH36cQ//QYI4IOnUdwAgbj0D/kv0OS6YI2TBWunXGZfYaEqEqgcgAUmDlLAjsx+B J8XgQd7SFrooM27a4OMl+Cgjw4GrMbkPUkfxwpLC8AIJ6dyZLCdOaZHzG3JEijRQ 0ZSAYuSMKDDIPzy6dYFEXE645qjmVph0QmjHkWHXcuo6Xnrv9/Dby2DJQYbRimJK VAFR1DeEWI2whr7qbzoSe/4XTuxVzXlG6VlgLHxXik7xcMxgdZB5trDHl48PmJfS 34ylMCMxhQRDcINYMSkB5qZ/nSwVqrJlYV0vh4SZMeUktnzXtvNiUwnOukKXthb5 9QHuiQHtM4YSkRCxsD5YGohZP4VhS62YrbD3wvrjfut7wRo9JZD1NF6syhnooRQ8 FJCTIouInliZyToTSNW0ifxsLJ6G7cyMF8Vh77dQ0XsWFdyMZ0HQuguFmDKfXj2r l+MAfunbzZ0i2nE+LJZnlFRpP5codYGJWqySzRI4ycC/BNwX576g9b6ajNTJ9L+f tt7oz1iGIuvVdSPzbLqg6tADLNRhtIgB1miv8h9tfSbpBT6axcEo5v0w2vnnS6vd mZrT8It6/HM7DViBDpuFH0IUOtsmv9EL1+tXe0yHw6Vk0NsVhQZherOAPuAzSeMe YgSxJyGgjdNF3j+N5XL+dnZq/bXao2W6Ix0qRdiRwFs6Fald7bI= =jATa -----END PGP SIGNATURE----- --JkqBI624jl5THtZz--