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 1vpbiL-00BwBq-1G for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Feb 2026 00:34:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vpbiI-00DFCh-2K for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Feb 2026 00:34:46 +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 1vpbiI-00DFCZ-1S for pgsql-bugs@lists.postgresql.org; Tue, 10 Feb 2026 00:34:46 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vpbiF-00000001u34-448Y for pgsql-bugs@lists.postgresql.org; Tue, 10 Feb 2026 00:34:45 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 5ED8A1D000B9; Mon, 9 Feb 2026 19:34:41 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Mon, 09 Feb 2026 19:34:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= 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=1770683681; x=1770770081; bh=Ghb39cZGQJ 5X1xz7UKoxWmxOKHRE9dQvTN+4F2xsCV4=; b=Ani52ElN2f1V0kcXvy/5LO4rok PGg89BaVSd0un+OkxSGPcj+Q88kQvOrBgkKdBp8vqBIVgC0FHzUI2LnVnb8abeop 9QcyXFGj9SiSyeWyInClCubcTj7eiL2xv1vohn1HGHYnQJCLQq6GlhqP75IIw2Td hwJso9LuwwL729Ocr4QYFcg/b5w3z53yIgXybPdr5knVcjlzEMWe1xNzpOHfpsdQ DlK9PnT3ds5UXV8dGJ+iSA8bAh6d9M3NQl3UjeuuaitlRD0aQNZoGmnT5whoAOwa nrSHlqbHqvlbH4jNkXYNzLMNYgSPbra0O0BzJjFc/NKnKJpOlwS4uAVQiPAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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= 1770683681; x=1770770081; bh=Ghb39cZGQJ5X1xz7UKoxWmxOKHRE9dQvTN+ 4F2xsCV4=; b=twHtcWri88RdL1T7kr1ljQYI8+L1mGryFg8xajFI4wunr1wBNJ4 ClCXhBO43pxCpAc4qpoE5Tjt4PZOCn/e2+bTfCefvde4h4dPBaPTLroyDbb08DA+ 4efBn4gjYahYQfMX9BpD0g/wD3ZtD2+lzvpeK5TS9XQcuoRFK7QzRMyhvYX/lTsJ YXAFb1SmtXm+JzwgI3dbmpsYXTP4Xb6aXngab3BszMWVrY4EjjVVjqIQaObZJV0q N0VggECcNm/OaJMdGqEwtxUzUrjyDYumGaOhizEOvBGYSUOLmoVYWq5tAe9m36gS TsNfoCSe17qgYkhXw9att/nLoIQ+eJwmDJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduleekvdeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuf fkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgv rhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpe dvgeduuefhtdeuleettdevjeehheeiveeuieegleetgeeljeelieeuieehgeevhfenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvg hlsehprghquhhivghrrdighiiipdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhp ohhuthdprhgtphhtthhopehishhhrghnjhhoshhhiheslhhivhgvrdgtohhmpdhrtghpth htohepphhgshhqlhdqsghughhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 9 Feb 2026 19:34:39 -0500 (EST) Date: Tue, 10 Feb 2026 09:34:35 +0900 From: Michael Paquier To: ishanjoshi@live.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19396: Standby and DR site replication broken with PANIC: WAL contains references to invalid pages messge Message-ID: References: <19396-eb33ed2e46a7a0e1@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nKUcP+DJ3j04sZyE" Content-Disposition: inline In-Reply-To: <19396-eb33ed2e46a7a0e1@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --nKUcP+DJ3j04sZyE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 09, 2026 at 07:31:13AM +0000, PG Bug reporting form wrote: > Primary db was not impacted, however standby node and DR site replication > broken, I tried to reinit with latest backup + archive loading from > pgbackrest backup but it fails with same error once the corrupt wal/archi= ve > file applying the changes. I had to reinit with pgbasebackup with 40TB > database which took about 45 hrs of time. >=20 > Looks like some RACE condition happend to WAL file that generate the issu= e. > looks like potential bug of it. Perhaps so. However, it is basically impossible to determine if this is actually an issue without more information. Hence, one would need more input about the workloads involved (concurrency included), the pages touched, and the WAL patterns at least. The best thing possible would be a reproducible self-contained test case, of course, which could be used to evaluate the versions impacted and the potential solutions. Race conditions like that with predefined WAL patterns should be easy to reproduce with some injection points to force a strict ordering of WAL record, particularly if this is a problem that can be reproduced after a startup, where we just need to make sure that a node is able to recover. One thing that may matter, on top of my mind: does your backup setup rely on the in-core incremental backups with some combined backups? That could be a contributing factor, or not. -- Michael --nKUcP+DJ3j04sZyE Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmKfRsACgkQnvQgOdby QH0CkA/7Bw9AUgwtPihqLxaKlbO7LxHWFKw7X25QcWD+NuCDiA4jYclVO5wnrzcn BsjQF4JZN5QtAecQDz73EzzJ9aKH7LaCaXQavTihntJrneDR4gmYlLPC8JCQOzZu reZisvScnXuIvkmBiT8U2vNJrN+OGZzRLRkcgcv6U2tytOIJBjeYKh1hLHtGUXkP 5hpb+lWAn56gPq06eHCwpbw1Ed0YtxPZmv2WPbyV68AJQeQCN7lhsrWbIhb1x9gr C4PwKsD4fxPpK24ON0SfEdD05V1QTg6qp6eRtbsuieUSaY68Q6hVb7MAxJIXD/d+ cnamnkaTxAAtY98LSsAvp41+W+Xnfy8mfWeg7hSfxBQN0l2/rTKHZ9iqYeN6DylZ hdYZFQ53pbXB9VYkNV8drKV6DMPT2td9RRhG+ToBFIQ3c/EoxeGWEX0ZvzydSUIH nc230JqkXqSeDfnAcl+eZOj/Q5qJg1pTXy/C3oOF4cR3J6gRpx+Zlc+xrgpJhGsC u1THBmjtEZJx16cQAoHhgurbuhPyv/cGk2h2pmRCRSqd4YZLZVONm69uRrucl9BY CsnL2CRA+2AQhCfhqqzB+2XAKGBILsk1Lrzk15gupocmXG25CY7IMCt7PE/XowX/ ZltAnIgbbA1LD3bSTh1zM9eCNqR9ZTJXPwkhJWMT7tNYqClAEpE= =CCeP -----END PGP SIGNATURE----- --nKUcP+DJ3j04sZyE--