Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: theshallow27(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup
Date: 2026-10-02 03:17:26
Message-ID: CAGRkXqTGP7BRT5Xv+xJoSc3egpPtC0h-LH-w4GxzQSt5qg7iLg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

Thanks for the report. I can reproduce it, but I do not see a real
use case for a newline inside a label.

A label that ends with a newline works fine. That is what a script
gets when it reads the label from a file. The file only breaks when
the newline is in the middle, with text on both sides. I cannot see
that happen by accident as well.

Do you mind sharing with us the use case of having a newline in
a backup file?

Thanks,
Shihao

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thiago Bonfante 2026-10-02 03:22:51 Backend crash (signal 11) in pg_trgm makesign() after ALTER TABLE ... SET STORAGE on a column with a gist_trgm_ops index
Previous Message Vladimir Savin 2026-10-01 19:36:08 Re: PG18: use-after-free in exec partition pruning after an EPQ recheck in LockRows