Is it correct to say, "invalid data in file \"%s\"", BACKUP_LABEL_FILE in do_pg_backup_stop? - Mailing list pgsql-hackers

From Bharath Rupireddy
Subject Is it correct to say, "invalid data in file \"%s\"", BACKUP_LABEL_FILE in do_pg_backup_stop?
Date
Msg-id CALj2ACV7H0ct94tm-rkvMyG_HGO14CaPhRN4YPT=ZbU9HNkV6g@mail.gmail.com
Whole thread Raw
Responses Re: Is it correct to say, "invalid data in file \"%s\"", BACKUP_LABEL_FILE in do_pg_backup_stop?
List pgsql-hackers
Hi,

After the commit [1], is it correct to say errmsg("invalid data in file \"%s\"", BACKUP_LABEL_FILE))); in do_pg_backup_stop() when we hold the contents in backend global memory, not actually reading from backup_label file? However, it is correct to say that in read_backup_label.

IMO, we can either say "invalid backup_label contents found" or we can be more descriptive and say "invalid "START WAL LOCATION" line found in backup_label content" and "invalid "BACKUP FROM" line found in backup_label content" and so on.

Thoughts?

[1]
commit 39969e2a1e4d7f5a37f3ef37d53bbfe171e7d77a
Author: Stephen Frost <sfrost@snowman.net>
Date:   Wed Apr 6 14:41:03 2022 -0400

    Remove exclusive backup mode
 
errmsg("invalid data in file \"%s\"", BACKUP_LABEL_FILE)));

Regards,
Bharath Rupireddy.

pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: GetStandbyFlushRecPtr() : OUT param is not optional like elsewhere.
Next
From: Thomas Munro
Date:
Subject: Re: Windows default locale vs initdb