Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup - Mailing list pgsql-bugs

From shihao zhong
Subject Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup
Date
Msg-id CAGRkXqTGP7BRT5Xv+xJoSc3egpPtC0h-LH-w4GxzQSt5qg7iLg@mail.gmail.com
Whole thread
In response to BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup
List 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

pgsql-bugs by date:

Previous
From: Vladimir Savin
Date:
Subject: Re: PG18: use-after-free in exec partition pruning after an EPQ recheck in LockRows
Next
From: Thiago Bonfante
Date:
Subject: Backend crash (signal 11) in pg_trgm makesign() after ALTER TABLE ... SET STORAGE on a column with a gist_trgm_ops index