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 1w2Mnr-000E6m-2n for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 05:17:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w2Mnp-00Fz7i-11 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2026 05:17:13 +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 1w2Mno-00Fz7Z-2g for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2026 05:17:13 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w2Mnl-000000008Le-175Z for pgsql-hackers@postgresql.org; Tue, 17 Mar 2026 05:17:11 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-7d75d698ee6so2975566a34.3 for ; Mon, 16 Mar 2026 22:17:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773724630; x=1774329430; darn=postgresql.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=yhRcwlsJr/zSWEMyBgNnv4R0H2lxGprUdt6t1KtqTo8=; b=hiyJHljxriJeHZmg1sKui76dfc09KwB9ieKdKDjqE0/33k8JlD8CRnE7ATtoF4Pc6b CebQRg6ChdS5IxB7OwydGGc3LJS7nmmyYnLeCmnRpuqD+50EkQz036E3xcDJIypQdnKP jfKugn/ipLhz3XLnEMTqRevQRt4vZ3N6VFwb4hbsfxhwPJxVwZ5kRYBf1y2naC7MkukV pWQks0b9wdSbdJYC/dQWxhYweexncHGgTGAISsWIHrNwX85ko+uo9a7A9eWXBjFB8Xws MDQa/sJZSrqJWJYJ8/X0b6F/+ehYKkeoq5tpE3a9ysosZZmfp0jt6tLdBchH2OlrjGbA 1efg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773724630; x=1774329430; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yhRcwlsJr/zSWEMyBgNnv4R0H2lxGprUdt6t1KtqTo8=; b=Qgo7KiSv3CojkU0WbCsF1B3ykeeJDCfimvfm8DCnhb++fckkU9DkdF5MIjXJelAn/w CtJaxE0GNzstqWRp9Mn/96qRdamUC/VS2B2l5dMCOumvVvFJNi9n3bLvo2aR8bEWICxb c62jRBQGlCUIGQjZ1+kFoQWlNXdR+JW5awKlrat56HBl38xKF1Q/Zd6+ATS7SzcAB/X6 8fcKkJq3LBQq1FT5WgWI6nFZUrap+8PYlR6RKABm5x+q2ir1/oFAxeTet9Zj2MQDS8eR nCZTstiHDudh6LGHvsJiiWabDyumtW1nDJItDTK2/xLwrNa6KT0H87i/HF7FHOkHbRu+ yuZg== X-Forwarded-Encrypted: i=1; AJvYcCVgjaLPfX+aCbKMMSCTso7oNBaj2UeItqIa4HEJNjZ6G6dQ7XtlV9AY6B0R8iXOifCLDu/Vtkc1koqGibTN@postgresql.org X-Gm-Message-State: AOJu0YxTSFtHYQE0TV9+hGX5bZ2A+OtI82U6+yb/8LAMfRco8Cv9HOs+ jwV7SDsLKq5YLRbtl9V2AlalaRegc2rjzYZ8RchsIWwSFgP5028qrEqSApeyRRsz X-Gm-Gg: ATEYQzys3dlmpbe4k0yJ+umvDFjY0ySF4TPvbb8rO/qno1QT1AUW8Z7ZV37Sat/ypuV S3ZFJKIqDYshFVbycTJsawT/nixMAXyu98NHAN1g+iHJvwJxWpeWHHvg6bfnsTgo2Kn/GNnYX3c ojXVnfN2Fwq+RD9DffHzg+sZFun0YjRlfmOnCaPyOl4hKiJsPNR4FAzVzBj5hRgdQx9BPbdtNA1 0/Eux7ySghAV82MhCcQ7GtdcByba3lvHQPdaKnfAcaiFrjp3CszmV3sa60XwYq/BfhrzkG0/gFg xj8KJNy3lGOIk/QsAbvQOB7IA6vitdf/75xk+269kiwjfX7e1fmjTFQfQ0w2/etij1cFo4q6Ch6 2thcJemR6Qxm8k0du7BzckCfsDoF/wpcc3nlMMGUwoINx5CbhMjhA3h3H6eSngWdJp41kO9HA+a 0L1rHJgqVQS9Ou8wsrMwAxCqNurGDyQWX25DRmQBkKKRJ4b/5EDCMQoab5cqmnfBwmN10= X-Received: by 2002:a05:6830:349b:b0:7cf:d14f:a4aa with SMTP id 46e09a7af769-7d78253c046mr9065285a34.20.1773724629913; Mon, 16 Mar 2026 22:17:09 -0700 (PDT) Received: from smtpclient.apple ([2620:149:13d0:100::102]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7d76ae9a51csm13816053a34.23.2026.03.16.22.17.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2026 22:17:09 -0700 (PDT) From: Haibo Yan X-Google-Original-From: Haibo Yan Message-Id: <17DC1346-0CDE-4E39-B110-3D6FB0797AC6@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_BD039545-4932-496F-AB82-C57053CA38CD" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: Return pg_control from pg_backup_stop(). Date: Mon, 16 Mar 2026 22:16:58 -0700 In-Reply-To: Cc: Michael Paquier , Pg Hackers To: David Steele References: <83f5295e-082d-432c-92a4-365707bd2296@pgbackrest.org> <1248c005-b693-494a-8d7a-68bc7d482679@pgbackrest.org> <8b8aa673-fcef-4e14-a05d-0885283ef1b8@pgbackrest.org> X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_BD039545-4932-496F-AB82-C57053CA38CD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi David 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? Regards Haibo > On Mar 5, 2026, at 5:27=E2=80=AFPM, David Steele = wrote: >=20 > On 2/20/26 12:47, David Steele wrote: >> On 2/20/26 10:10, David Steele wrote: >>> On 8/7/25 05:30, David Steele wrote: >>>> On 1/24/25 13:43, David Steele wrote: >>>>>=20 >>>>> Rebased and improved a comment and an error. >>>> Rebased to fix breakage caused by the split of func.sgml in = 4e23c9e. >>>=20 >>>=20 >>> Rebased to implement simplification added by "Simplify creation of = built-in functions with default arguments" (759b03b2). >=20 > Rebased on "Simplify creation of built-in functions with non-default = ACLs." (f95d73ed). >=20 > Regards, > = -David --Apple-Mail=_BD039545-4932-496F-AB82-C57053CA38CD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = David
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?
Regards
Haibo

On Mar 5, 2026, at 5:27=E2=80=AF= PM, David Steele <david@pgbackrest.org> wrote:

On 2/20/26 12:47, David Steele = wrote:
On 2/20/26 10:10, David Steele = wrote:
On 8/7/25 05:30, David Steele = wrote:
On 1/24/25 13:43, David Steele = wrote:

Rebased and improved a comment and an = error.
Rebased to fix breakage caused by the split of func.sgml in = 4e23c9e.


Rebased to implement simplification added by "Simplify = creation of built-in functions with default arguments" = (759b03b2).

Rebased on "Simplify creation of built-in = functions with non-default ACLs." = (f95d73ed).

Regards,
-David<pgcontrol-flag-v8-01-b= asebackup.patch><pgcontrol-flag-v8-02-s= ql.patch>

<= /body>= --Apple-Mail=_BD039545-4932-496F-AB82-C57053CA38CD--