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

From David G. Johnston
Subject Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup
Date
Msg-id CAKFQuwbjp=jg5_K3W3pP8cuO68B5R=NOuRRo6ZCvTMyZMyW8rQ@mail.gmail.com
Whole thread
In response to Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup  (shihao zhong <zhong950419@gmail.com>)
Responses Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup
List pgsql-bugs
On Thursday, October 1, 2026, shihao zhong <zhong950419@gmail.com> wrote:
Do you mind sharing with us the use case of having a newline in
a backup file?

The fix request seems like something we should just do barring foreseen issues doing so.  The system should not accept inputs it knows are incompatible with the output it needs to produce.  I agree there isn’t a reason to try and make this usage actually work.

David J.

pgsql-bugs by date:

Previous
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
Next
From: Michael Paquier
Date:
Subject: Re: BUG #19730: PostgreSQL `pg_backup_start` accepts newlines in the backup label, producing an unrestorable `backup