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 1lGaDi-0001Oj-SB for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Mar 2021 04:31:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lGaDC-0000vL-AX for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Mar 2021 04:31:14 +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 1lGaDC-0000vD-4J for pgsql-bugs@lists.postgresql.org; Mon, 01 Mar 2021 04:31:14 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGaD9-0007B9-H7 for pgsql-bugs@lists.postgresql.org; Mon, 01 Mar 2021 04:31:13 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 368B450C; Sun, 28 Feb 2021 23:31:10 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 28 Feb 2021 23:31:10 -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=mLf0WsQfiJWrQqxw4zAEzwsp1op 1gxNC4BT9ZIcIjD8=; b=MVj8ce6KhH6khxb3/AdeQ3qWU3YVKaikZASEDj/TVeo HpZlhWk1ZuQJtiyG08kkj6/yO7uegDNS0R0sa248GOYkHubn8xSOM9uiQtQZAARP 3Eg7GwcVhNUr/YKDgG0Xec6k/v8ZTz/CiHKKwSae+UK0yuuMKzT9jTY47n6RC41I 4OBH8E4+c6hShYb4c6n9Hx+h+XuGV7hq+WgRoNAyfzZ5C56s9DUVBz/fsGfGf+Pu inq+dtsRgeVqseIf0EsC6ZUvUEULYIndDiOqsjiZmcw55SPqcp8dvaQPRv2q9GFr dIGWGTamhoHmOuhnSKzMLWpeXEhQhAc+0s5S4xAyQsw== 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=mLf0Ws QfiJWrQqxw4zAEzwsp1op1gxNC4BT9ZIcIjD8=; b=t+o30lkKl3Q3gimog0mjDO UviLNVNbRgl5JmOY5Om7pGITJ31h5XDYKw72aWVMRSD5tM2M0QyQ4xwaFSTLJNZd yNtVlp1fa8OHJ90HqsyxEs6lsik/9iLAp7L/SHd6lDfmS3xmVoqDD9fzxGxzgBw6 Snt3WWBUAX1bzyIekcdCi4FkiKy3gw+VzpAfumNCwIZtBEwcHysVfR0f9dMcyk3O 6MhfsmfsN3n8xsAc+T+oTFc8W9nQ86EdkWDCoMz249b2Dxhq6W64oaiHLTz4bEki PNvguPB5nz0M1JcQJmow9mgkm1VrFJ9DOK7GFcTmhzIRPz4l5mqF3z7q/0oT/Ikg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrleejgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtdorredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepheegtdeuheekteegueevtdelleek geegfeetfeejjefgkeehieekveejhedujeehnecukfhppeduuddurddutddvrddukedtrd dukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii 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 44073108005C; Sun, 28 Feb 2021 23:31:06 -0500 (EST) Date: Mon, 1 Mar 2021 13:31:04 +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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bXft1ZQaK6lU5GvI" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --bXft1ZQaK6lU5GvI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 25, 2021 at 12:53:44PM -0500, David Steele wrote: > For context, when a user performs selective restore all the relations for > databases *not* selected are restored as sparse zero files with the correct > size. WAL replay will update those relations but they are not expected to > be consistent, and in fact we make it impossible to logon to those databases > so the only option is to drop them. What is a selective restore? Is that a pgbackrest restore mode from a full physical backup where only a portion of the database folders are physically put back into the data folder restored before doing WAL replay up to the consistent point of the full physical backup? Then, you emulate the absence of the files from the other database folders using files full of zeros but with the same size as the original backup to trick WAL replay? -- Michael --bXft1ZQaK6lU5GvI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmA8bggACgkQnvQgOdby QH29UA/9ElTRvUaGmuiZ2I5xGng3JwBlBmqb+myiOUCau+f+jzB3ZbUfvOMsVqlz M0CqW+3e1AX/d8hqn4T+wgeEnsFXfCv24bTqJClqoIZK2fTTvN0QmboAcQGo2D1U 3eEFBTHTIVE646bHOcJBUT3RdaKGGnZEYU8WDwZG1S+n6qqV9BmtvzeT1AfKMY/o 3aH3Jo4g5NlH0O6KnG5VJqO/724Ahy1BnGILhrmoEyw2sNpJHbJkOIFZn0ddiyFj SXANqZs3xYHZ5z2prHhFOkjpQ3lZzt2odulFXJ7ZEg+9SvQeigxWY0AcQDDP9w6p NWHHVnjnrP5dk9PQRWJWt4jWbBAMKID6VM/i55eJgUuapEcMQ+/tjrLKpmFwp947 T6nQQcUht8Sc16unh+00hUBWdrJuTx6/6CWx68ypsLNp5Q/kLE4rIjvAxKT2OVLP sgVZD5RBnYr5IkXpwP3niyDLIcOjD6aqI7cXmN0OBo7DfH5SxGlZ0arb6UX16TcO s1QrEBokfPSXx5bgFsYwRkmVnniuE+QdBGbBnlT5ZVKPZ+yBhJ8qmTHROrhCPUud bZHaXfZxLYzkKfM61RJkfjRITEMUGL11XHZR4oUShPi42Ak5rz13ZuMpcLiOb0eb bIaAwPTtUGvdbdeyL+/QkkfxrJzckPfEj+ZYZqlAN32Oqcy1fOY= =M7A6 -----END PGP SIGNATURE----- --bXft1ZQaK6lU5GvI--