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.98.2) (envelope-from ) id 1xCUwg-00000003pRR-4616 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Oct 2026 04:32:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xCUwf-0000000AFcQ-48zQ for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Oct 2026 04:32:29 +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.98.2) (envelope-from ) id 1xCUwf-0000000AFcI-0gLe for pgsql-bugs@lists.postgresql.org; Fri, 02 Oct 2026 04:32:29 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xCUwd-00000002Ixm-1fIi for pgsql-bugs@lists.postgresql.org; Fri, 02 Oct 2026 04:32:28 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id B81E81D000E7 for ; Fri, 2 Oct 2026 00:32:25 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Fri, 02 Oct 2026 00:32:25 -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=1790915545; x=1791001945; bh=lDS+IRSgQN 5SixLLqOLxAn0+6kdzjQfJc2mOceIZa/M=; b=PszaMOcBmXge4qupbVkXva6pyU lT29UlIhReXYsl8JngrqWhoHbXnUkWmQzqafdS1H+C6MndAiLJs11WVz0/kKSocm 3xuX3EwuxPO6YU7aktAxH0J95hnrwZ7hiSUq5HlzDtb0RQkm35cEUvsZZ0Y/G0A6 9wvSvfeaPHIhQ6vlkZaHs1zTsG42XURYVQdTd8LFXXQn83xl7SJgYixyWmNNfY10 DQziQegTCS8tYnYRPpE6pcUaIpFojMuDBx0eLAl6wcQgXeUp+YGQMxKMZJbhnbYB OTRK+QQy18BYsxbOTvG535EdDeC463xZP+VgQ3Oi8U+JsmEThEyA0kfZfvQw== 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= 1790915545; x=1791001945; bh=lDS+IRSgQN5SixLLqOLxAn0+6kdzjQfJc2m OceIZa/M=; b=Z/7llOlTHMwKz3DyPVs5ORZEn6kQzh0u8GpE1gSYDIhAPUNjgSw 4g+B0nJvqUwc2T6dxW1sJiuAe7GN8uejB5NArQrrA+ch3NnnkBHBYzxuzqa12hPu PtI5eQYa7gh+uIhaGlSwv2hhBsyBWt5PcVkHimzPziMoLd55d1NF5wWKlaHw+FIy 3AhBOxS2c6aFP5GrM/CqoBnWQMO+eozCiRpooI22SQEM/BCcxXk4cWhL42xKlJUu 1mLcc80q5rUanYRFE2hsKaHetUTQA1Ts0ywWafiJNHx5z00uRACygDsAUgNHs5yI SurVh+RjHDpQAm/mT3M72cfUtqUDRkxzofQ== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-09-30; sw=lmtpprox; action=sign d=paquier.xyz a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1790915545; d=paquier.xyz; mf=PG1pY2hhZWxAcGFxdWllci54eXo+; rt=PHBnc3FsLWJ1Z3NAbGlzdHMucG9zdGdyZXNxbC5vcmc+; s=fm1:rsa-sha256:d39psnEMeeAIoKG9yIDZBIniYT57XLoH7jOhtSLQKyfYfIW NsHmg+a/spNtvNm2X4NYUMbTunPvZFjI3fiELDFRzbY+aK4rCZh/cJsQ6cp0A8/i VrFnpx6b5x/7iS0lBXwLJviKlKj1+AoV7A5WLCxguuUQHOhCRgqpRLIAvXk4W2Rf 9FbS5iRA3yZoksB8YSdYiUQQtEWQaDkFvXzV3ZcDlRqwlET0DiXACxKrxrGlLAr/ ANFcDS1APBTLq7Nv3ZnpfQc7PP1fsO64uzTs7A+JRLzNkA1KPIeaAyD5DNGsWLkC Yq9Pxv1sFrtvH+gkDqDY7qMkBhIQYi3kEx053cA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-09-30; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:HRwrRqBSQkAhx9xibGcfem7L1KIhzrlgx4S3K0qUtFA=:LmrW38RhFtrLPgiqiCf4dqdTJGrr7/DD3LRcEgoBCxQ=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFc4+222UzlpBft11y7eINq/oMsbIw/DiB3xbfiK5VSHu2X+3kg/4XSwFG1GYD//4 8taAVPyBoa50h72rYhxIDOTeMH5wprlEiZ3SDfI5IAvBJJNXMm2ROO1k4nOGXq3sPxL465 a7vzHySN5ASuaVNXkX0LeBllV3HCQJf7xMvZk98eYMPLJYrWr1FcfMrdkBOKk9WCrT3mY+ M5gxubJchYuBtsG4nj6AEZrwA43BQip7tHSs2gYNUkUba4W9ahnwxrnXcuYtSbp6goUFvc 1MGuB6yg2fdMNmNk+7x5gGX9srblpbBc2VaTQzkwNUJULPXma75uHB2pc9jItxJfk2iDPk 5ro7BCspWU9P6zga6ozdwXQpFezHAL21yMCL8ATAEty23xzYt5eNKV3eAgNUeW4sKfHV15 fItJW9z7K2q06RYRwS4ntkUyYvpADJcbnAdWtQ+e4pHi5KKY1vJ+CPhDERIQ/Bkj2H568F kR6Y7/5o4nJTyirkhGQ+DXpwZoqyokSSco2+n/T43zJ1JzCZHRXpNMr2rJabxGbMyZFmmC 5ycSRdUD4iy9JO7OjTYhHrdlKTg8ikQvmrXZCDoooDxYOGVS4zaFAOnXtdRgprjmXw9QBj MrCd3lLIolxbqfcPT1mP4gVgpgbJda4RPzmzoV3HnUJTWTRBZR6+XtZ1aSQA X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Oct 2026 00:32:23 -0400 (EDT) Date: Fri, 2 Oct 2026 13:32:20 +0900 From: Michael Paquier To: shihao zhong Cc: "David G. Johnston" , "theshallow27@gmail.com" , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup Message-ID: References: <19730-85a6044c9e72774a@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GXBdl70wXimBiiyb" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --GXBdl70wXimBiiyb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 01, 2026 at 10:07:41PM -0600, shihao zhong wrote: > Fair enough. Patch attached. It is the check from the report, with > the error wording of b380a56a3f95, and a test next to the "backup > label too long" one in 020_archive_status.pl. WFM. > One thing to note. A label that ends with a newline works today, and > this patch rejects it. A script that reads the label from a file can > hit that, so I think this should go to master only. Of course, this is not something that would go into the stable branches in any way. Perhaps other will have some comments. Let's see. -- Michael --GXBdl70wXimBiiyb Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmq/M9QACgkQnvQgOdby QH3L3BAAnFJQRZ8FYex2M5MHrda35kyoL+rCC4SNmVO6lgePf4hwxIwOHaRiWTzu bV/jbFYX8fPwrHdY/3FcQGDquHBCWMCWrIUeZYTmqI7//tBsaYwMnGOeEI7wn6uT 0CwZjaIpcv2tpbLkrnka8A4rgXxAEZCAo9kQ8H/QBMYV49khTk/V+g0QBD1HFwL9 mtkGSz5NEzqJ5r11DmoalxC8wF87c/bd4E695QkyobzfQNnA015ob5NZucGab9ll t1AX3aXe/xmCtm8xUC6vGrAcONV+yafXKzWQHccJy6rpUr3Rqr79dwcD5Efpg49G WpaUNrtlb0UkhDvfpPj9MicrLW/8SiLpmCj7EXt2YlcM703wyQY9ABV1BtX+ooes r0KqCabOaEHlQKjVRh+Uh5I98kFzKwxKft70Vu5Lzr251DeTs0Nblj/46My/oakl r1iFlwCoHt4n0JxQroBBaqa5pwJ3peCAXz01TZaZwnwcvAhDQWBeKqNp9wq15Fv9 Z3TDglFnu4NbtjAvulm8VyFPnsSCBMgKuwG8lIjDypNH9po70ATz1tsEN5pcNDoV CsvU75/hGxIbGiOiGIkKs1cMrj+AGfNzvVf46835NiUND4gd/e/uqmHWtt+h8Dvk GxofW8n+Vk4nPhiyUmGxYpcTaT3EO9df1fQsJMw6PDxeQdmvN+g= =6u4u -----END PGP SIGNATURE----- --GXBdl70wXimBiiyb--