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 1lI29F-0006Qm-VP for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Mar 2021 04:33:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lI29E-0007QD-7w for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Mar 2021 04:33:08 +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 1lI29C-0007Pt-Jp for pgsql-bugs@lists.postgresql.org; Fri, 05 Mar 2021 04:33:07 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lI298-0002vJ-TC for pgsql-bugs@lists.postgresql.org; Fri, 05 Mar 2021 04:33:05 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AD3E45C0049; Thu, 4 Mar 2021 23:32:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 04 Mar 2021 23:32:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=C/RPfiBYRsJ6EYunpiKXkgmxTzm slFK+OVlZeamuByE=; b=QWnAbWnxNlQyFwvS2kdHjD2Q++7ZglGxaVl66us3AK6 2xYflfudkU5cs2qFa2e/8fkteIr0k7U0HWiwWfAM+CpQsgublebhg+MfKHKTD+nQ dP9f/vFy5Ew5AmmMX9k7hDgwcLIgTs7NfsGoesexpNLN397eT0EVgpm+jRFGu8LI DiEFX3NiOmFBTeM7Zc3rm8MFbVbMWIau/3JrV6HR8asaN/k1e8qUEJe8hB4P2Z2O liKPkYJ3/fQ0RTtOTE3jfhTgl+GwmO3fL/2nIS6eoobUYCNpbKx2cHGXT6s+J8Et goA9zEyiDiOZjsQ1i2+cQt375gbWLR8QO2ZijSAIFuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=C/RPfi BYRsJ6EYunpiKXkgmxTzmslFK+OVlZeamuByE=; b=sR/rjC+Wp910k6tDzMROgE IOF4/fssQe2xlQ76G6N/Hp53jr/u6cqzVljLNDfgnOVP+qqgm8FCBf0rh/ZMcPWO 9plBF+HRYRdOvPq5qIsPh/mqQU2ehCfM3K7wtBp4KhMLmyEy1AmYhLe++6DtML1I VoOeeIjwYbzhx2IVJXW3g8vTvonuDgNORuLAyhOpxRJcgrH/iTRl9k6/mKsDrP0K Tkd98tTf4GLbST7GddG0cQ6OXPDeryRb6i+dLXXjItWIwiShAfCwGo0uO8kmrV4L qCdh5de2uyxgYVlB7r9wtGgrTt4UoIE8B5pO50nPvwrnk/IJarl/j0NNiPmrqeQQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddthedgieekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id DB789240054; Thu, 4 Mar 2021 23:32:57 -0500 (EST) Date: Fri, 5 Mar 2021 13:32:47 +0900 From: Michael Paquier To: David Steele Cc: =?utf-8?B?0JDQvdGC0L7QvSDQmtGD0YDQvtGH0LrQuNC9?= , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16894: PANIC: WAL contains references to invalid pages Message-ID: References: <16894-c29735df12727642@postgresql.org> <11b70b37-997e-8a2d-62f3-0f8398b7cafd@pgmasters.net> <188742f3-a8d0-20b1-2acb-a038a7d5727b@pgmasters.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EJTvro2HgeKP3BOV" Content-Disposition: inline In-Reply-To: <188742f3-a8d0-20b1-2acb-a038a7d5727b@pgmasters.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --EJTvro2HgeKP3BOV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 03, 2021 at 06:49:02AM -0500, David Steele wrote: > OK, but shouldn't we have a full page write for this page after the backup > starts, rather than the partial we seem to be seeing here? Is there any > condition where the full page write would be skipped legitimately, or does > it point to a problem? That's how things work. If they don't work this way for physical backups, we may have a problem. At replay, the full page will be replayed if BKPIMAGE_APPLY is correctly set, as per XLogReadBufferForRedoExtended(). And XLogRecordAssemble() does the decision when building the record (just grep for needs_backup). > If Postgres is running correctly there is certainly no expectation for > support of this unusual use case, but I do think that this possibly points > to an issue in Postgres, which under normal circumstances would be very hard > to detect. Well, the report tells that this is an issue that happens on those fake files full of zeros, but are you sure that you have the sizing right? I still don't see any evidence of anything broken based on the information gathered for full backups, FWIW. -- Michael --EJTvro2HgeKP3BOV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBBtG8ACgkQnvQgOdby QH1WFhAAhAytEHdOqVifdInUr8d/6pSjli/nh6xHAHdDFMte5acOE9Nmk3vLNSyq ev2zGDmMJliLjthmu94quHlQZEb35NcUASlXwgjF9X0b+Kpyvw6T7g2Z4GfhsU14 OeOcBNsTkVMJjp7ZgOcLnvE+awWxmX7mRd5MFY4njTeEZDUNLjeWQjTEdRihth1O yaRN3zryiHRvvleLSVwm1csiN8PSPMabH6pWtjWw4w7o9SXCB8kgp9g4rFnjOfri 3H/QHhrv8SBwJTn7Op5sCPVC4f41mX78PL4EkWsdX+KyNsRkBxgbBuEgE+Wqi5kP N1ZX9zfdL48L1jC6oIu++eVqavUsUS93BleS03jAerp26ZFKsEox7S/YfS3i66RC Mjd9RfSmfjkajOIcrpc8Hn4shVWqxM2vs1u3cT/ttfY3lqqjWJ0Jm1AnMPvHskTB mmulSzGzvLaDPmwDl/ECQ/neyXFsDC2EM1rjgOvbetkJrwLcWTzE7gt8Vu5jzaS/ j6xhoPwpcLEdK0nqTFo1bsc6Cfes+Yg6d3kei3w8ih+uItxr1R5TH05mXWcJr6+f ghQB8mRTSs7nti1nEbHyNWQeIiaFaiMQIEi1oKU8fmUOri+rDTXeg/T4QrzEP0ME KZK6VTyGtsy0weGzs6Bxmgd3XH9g1dJC03RLJARaqLbcFY2p2sM= =mCZ1 -----END PGP SIGNATURE----- --EJTvro2HgeKP3BOV--