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 1wS2AB-002tt0-0s for pgsql-bugs@arkaria.postgresql.org; Wed, 27 May 2026 00:30:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wS2A9-006VEq-0e for pgsql-bugs@arkaria.postgresql.org; Wed, 27 May 2026 00:30:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wS2A8-006VEi-35 for pgsql-bugs@lists.postgresql.org; Wed, 27 May 2026 00:30:21 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wS2A8-00000000w8h-0HWK for pgsql-bugs@lists.postgresql.org; Wed, 27 May 2026 00:30:21 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5067C1400104; Tue, 26 May 2026 20:30:19 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Tue, 26 May 2026 20:30:19 -0400 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=fm3; t=1779841819; x=1779928219; bh=P+DUDW0cVT OJKDnMKpsteVNBev4hD1zziKO2s9DXk1A=; b=aIsxqZYqn4ZvjAEEg6DsMBid8o G9LKHakx870UhRuksGEcVFhJyiYZaGsW8aZfTArRaViQDPIYqjozHONQwAtlai1A jLLiMDdD0jswO5ob4VOvuSWDS4D6JM7nX5qTQ0ym1bvWvI8Wmqs6wKEBeh/7TStO yZ1yMKofZJYKUNNID6YuGqDSUWX7outhC/BakGuCrTkLGFvSB3GgOUgLNRjmajHr KRMYi9XyeNcPH9lXE29xW8cvlLQKZPJF+jkFv8NsG78tMVOlltl2einfk/J7iyEA rh6gA+PMC5MEoQR5QnnjnKbY2WvOF1vU/7Ig6TE8oLOa3kCod07/AzvYxgJg== 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=fm3; t= 1779841819; x=1779928219; bh=P+DUDW0cVTOJKDnMKpsteVNBev4hD1zziKO 2s9DXk1A=; b=GWnyc+djM6fVh/1iRNqPI8BdPPCBRPwcJBhTq3GQhVDGE9KGWyC Oidu1TQQUDaJj8CxIIxq4Jv6cyA0ezYPIQ0JaNp+kogsXQZS7V7PUbNpQDtuEhLs cLNi8jwKJUV8mSOnKxGgo2Kni3Tc0FxDiBJ3eCbNqYooRt1ZiZClVGej/X0DkfWh uR90ymmqJNenitToM6PeCQ4E1fzR6OGMo+sh3cdUUswibTqqjapF2yWvRTswUb3R JSXfwIzfFUk5aIuv7dVJbXHRQnFlLSPkP52B9psSgvq3zigfJipyEaj7hazKVnDl uKeVw2sWLJg1/s2WrEGAHymy8OMx3yz/MFQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFueLWZpF/UBZyfT6/InizI8gf4MaGdaQDLFEM/tmyg/w7OY7bWESmoEuYysodLOR omEj4Vvj8uOtC3yKeD8kWgXkjYYQWP2PFofXEjUWIxda34z3SrgklWEWmlGjvoOkS7u618 wixiZZ9KmW4pkwsYqz1WvJCO9kfSr7cbUjmzWycOf43cloTRsfaijTU79UcACuwKYwyam+ QeJtmL0V3AXG4w/ykjAmXk9C445ENd4h40kTnFK7OPPHdhlyzDLRIw/YeN+Wn5GEy3Etjv AUhDhkNIqWOSi3qfgSE5plgHMq6Il8KLwR6dkdCWdt5O3KpHej6Zp38/GaDx2JPn4bpPl9 S7Fodj8KwKM8p9LVhAiQHxpK3AW7MyTFmQql+b3B1ruQ5zyZChS9hCcs3lTXgm+xfTPe7H SoqN0c3JXq3B2j0pUQzurF23TzVOp7w6+PhJYjZUXu+ZTDBM/MPf2zApcqNYuclDq1ABdc jkEp9WfJNHbtcr7TeORMQKoIds2+XcOx+Civ2Irl1VPpp41NyaikrPmza1A2UXnYfEpi0x cULVBnklU7qJ1z0rK/ZucO4O7i64nTw5oXPkAUOyVL3xnnmFRyXa5MDPi1GAX079ymgWNC DdKSBpU2ZBrcZhafogDTfnxOXXkFeHtaqQW6WdpN7P6sb0NdtBSyd122HCvQ X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 May 2026 20:30:16 -0400 (EDT) Date: Wed, 27 May 2026 09:30:11 +0900 From: Michael Paquier To: Andrey Borodin Cc: Heikki Linnakangas , Ayush Tiwari , Radim Marek , Marko Tiikkaja , PostgreSQL mailing lists Subject: Re: BUG #19490: Streaming standby on 16.14 stops applying WAL on MultiXactOffsetSLRU when primary is 16.8 Message-ID: References: <9DF05C0C-D165-4821-80C2-FFAF47C07FF4@yandex-team.ru> <90F2A05B-FEEB-4695-87ED-32F53C6AC097@yandex-team.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MAoqJLCIwv/CPtmg" Content-Disposition: inline In-Reply-To: <90F2A05B-FEEB-4695-87ED-32F53C6AC097@yandex-team.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --MAoqJLCIwv/CPtmg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 26, 2026 at 11:29:58PM +0500, Andrey Borodin wrote: > On 26 May 2026, at 17:28, Heikki Linnakangas wrote: >> looks correct Neither do I see an issue in doing the first steps of RecordNewMultiXact() without holding the lock. The consistency that we get across all the stable branches after this patch makes the whole logic neater. > I observe: > Without the change startup deadlocks. > With the change standby catches up, the DEBUG1 message "next offsets page is not > initialized, initializing it now" confirms the compat block fires correctly. Cool, thanks for the patch and double-checking things, Andrey! I did not check the fix beyond a check-world (aka no cross-version replay done here), but looking closely through the code I don't immediately see why this would be wrong across the v14~v16 range. -- Michael --MAoqJLCIwv/CPtmg Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmoWOxMACgkQnvQgOdby QH0b1A/7Br7VxLD5VZ57VBsrXhLqlenHYJpHeXmy4ajlKQ7H2IKQfxCmewFjDWAC 7yZ0TxQ8+/bX0wM4/DubiqQ2Q6Na0qoR4ZEdnTUNlJQ09nGKxgYbaoTEbOCay/WG 95fDrLayoUh2K1mJkp03wiVKXA8fOrjZTeaSbs+jv0VqZCylY8hghRSlfOJSATGr IdfFdBxaEtW7j4T7/bRoXyNYcWhT/iCuiU7d+j5E/QruYrvJTRs6EWdjs4+ParN7 jxAE+oSOd098ZCRrTGGEDRBWxOAOZiiV799ib8sA9VmPdVlrkjQo3PKZThQt9GqP Kxlf8r+CcPbjZfGVXeNJbfmv985LjvUDFTjYBT5kUTcmRB9Q7dJ2cMXyj7zsljNZ NxPzBMI+tR/tG/5550RLBKMfLph0iydFrHupqHHe8rulf+H/AwtzsS7VzJF0XlMk vJDU64bi+zpTtybL/ntrF0dQfOHWrR9L+Ryd3mFVImHn5LbShp9+2+2IT9b01lN/ Zkuzq9wE3d9hnTSM2HXBfHA3KrHNet1dv2t2Onxf6Ib6iZBuk1pM9HE2I+MnYcPY PcGO90QGmcBZcSG6WMh9h/09IkugQuDn11RZKEX3ksUtEdiHccGAgpsCEJeScxKt A3KWlLf9+TvGOsek/yUKzbpgQhTGuT8vfU9BpeNJDalcIb8Vpfw= =y/mZ -----END PGP SIGNATURE----- --MAoqJLCIwv/CPtmg--