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 1w2NKu-000EXt-0n for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 05:51:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2NKr-00GByt-29 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 05:51:21 +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 1w2NKr-00GByk-1D for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2026 05:51:21 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w2NKo-000000008aM-0ADr for pgsql-hackers@postgresql.org; Tue, 17 Mar 2026 05:51:20 +0000 Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfout.stl.internal (Postfix) with ESMTP id 4D2CF1D00281; Tue, 17 Mar 2026 01:51:18 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Tue, 17 Mar 2026 01:51:18 -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=fm1; t=1773726678; x=1773813078; bh=x4UfRZMg+V d30d8Z2PJZbz/9OouQYtVKOXXaMMMuPn4=; b=rghr94J3wgpxv07vqQY0bxNE5W hCcsNoawOdVDbZHsUCh+VlHala4KRJ3UrCxoqmTK6PA8NHiQLjtchG7R/6U8b1up yfi67fMPLhInpFPzwIheV+Z3iMXTwZQL5i62mrnRrwUkbKLSjv36IOqkX+4SIFtK EpGN9hLVkTCdVAEWvpEzogHgnwL2MbpMzfNcgqbDDOLcbgo6u04zgpjVxx/LO2aj TMGwDqah0gmjTtq45IMb9FOrNoh4nzqtYpz0UNWhbSEaVfpkKX0bMJjkpf6oCU0r 0s9+MhSUHu6Mcey4rkcBMHwFlMvy6MvnzDbjd9nuyxO7Dog6RFxOfOOBuMmQ== 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= 1773726678; x=1773813078; bh=x4UfRZMg+Vd30d8Z2PJZbz/9OouQYtVKOXX aMMMuPn4=; b=b7FNIVjMVuQNhGVM3YJlQD9PQ2Rl+KUnpdAYdha27BCUiePZUgi 4vXHqgruGvwkLneLLCQ4BkfuY23FAsAEdJwOQMopSS3qQBRA0/Mgm7HawHacrADA ISM4212vTzMX5t1fqe+q78BIomWYIaa7WWarcM9dR47b/DQ/HK6pUTE2se1K0LUt YBCgQp1BAzTJqczdiqTYNA+Fw4ks58xPoAqtcDDTRuLsSXTCnbkfK3D5LxRpSTJt 7mK2rOMnqZVv9LR26H3b6MFNsZQSyOb9PrfoLCn9Vwj1TCWE3Glcn6B8p7uXmh5G uQ/LxnTMUOTuPoaw5ihPMXV4R32SQOvCdTA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeftddtgeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttdej necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeeiveeijeegleeitdeujeehhfei ffeitdefffdufeffvdekgfeihfetuddvvedvnecuffhomhgrihhnpeifihhkihhpvgguih grrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepfedpmh houggvpehsmhhtphhouhhtpdhrtghpthhtohepthhrihhsthgrnhdrhihimhesghhmrghi lhdrtghomhdprhgtphhtthhopegurghvihgusehpghgsrggtkhhrvghsthdrohhrghdprh gtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 17 Mar 2026 01:51:16 -0400 (EDT) Date: Tue, 17 Mar 2026 14:51:12 +0900 From: Michael Paquier To: Haibo Yan Cc: David Steele , Pg Hackers Subject: Re: Return pg_control from pg_backup_stop(). Message-ID: References: <83f5295e-082d-432c-92a4-365707bd2296@pgbackrest.org> <1248c005-b693-494a-8d7a-68bc7d482679@pgbackrest.org> <8b8aa673-fcef-4e14-a05d-0885283ef1b8@pgbackrest.org> <17DC1346-0CDE-4E39-B110-3D6FB0797AC6@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AEnoXSk1dVxl8shx" Content-Disposition: inline In-Reply-To: <17DC1346-0CDE-4E39-B110-3D6FB0797AC6@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --AEnoXSk1dVxl8shx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 16, 2026 at 10:16:58PM -0700, Haibo Yan wrote: > I have not read the code yet, so this may already be answered there, > but I had a question about the proposal itself. This patch protects > against a missing backup_label, but what about a wrong one? If a > user restores a backup_label file from a different backup, the > existence check alone would not detect that. Do we need some > consistency check between the returned pg_control copy and the > backup_label contents, or is the intended scope here limited to the > =E2=80=9Cmissing file=E2=80=9D case only?=20 Please note that we use bottom-posting on the lists, as of: https://en.wikipedia.org/wiki/Posting_style#Bottom-posting -- Michael --AEnoXSk1dVxl8shx Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmm469AACgkQnvQgOdby QH2fcQ/9Ec2lRSZy2THshXFRzRbcLHR6GILE8Dqk9nJSsQa58wjmfrTMxKDrrJy+ MItXZLL9m0ntE1kNygrsKkYA8gwCs6SRNdqZI6BgepZPWcp8e209nx/NQ+RCQKEt Imz8lvjI9q/+/hwAcWTbi3/V1noIYaH8CpZBh0MqXSsihqiwwJNDY9cMLtzgUHhZ 9LzpHLpwu/hbPLGQ5t3xiVeUi3MrIqgVa9r8wEdc4XFxwWiF3DmaMZhqBYrdNV1J 9sNjCepvqh+0iQI+M0tryAXlkJ8dz2/rniSOCj7UF6D2KNdM0y3NV2SLlUCiutOu P2Vrkh+PN5CH/I+loNw+xJsSe0Bi3pCUKCIhCXuRsZehXh1ZQ0rdXw+cVhfNnqFX i/Je/+3Kjy62v+Xbl0muaXV3I+N3ZO79zibHDSeFVwRlAXFeQk4RGtK1oV/DEUna jxXSZBaRi56sdpqIiKJAvQR2S8j3ffdMULTKcKK5f1U0espUnEGrrPTnIubG63Sh eRt3lM/KxkN0TqCdegXqB+0HQxelB2D+n5M0tQRYosBbxHALkxlt8J4jrvTRUchu Q+advW0eKpxwvaiH2ed15hXzLmxWQcXGWO6ewwqhH9ZROc/id4eyKeiVhDIJ55mO HsvBjonv2Nfqpr29N4gxf64QvyFAyXXOhrIwi9apZz3FTjoZyl4= =+Im4 -----END PGP SIGNATURE----- --AEnoXSk1dVxl8shx--