pgsql: Fix error message related to end TLI in backup manifest - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Fix error message related to end TLI in backup manifest
Date
Msg-id E1vhO6D-001902-2W@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix error message related to end TLI in backup manifest

The code adding the WAL information included in a backup manifest is
cross-checked with the contents of the timeline history file of the end
timeline.  A check based on the end timeline, when it fails, reported
the value of the start timeline in the error message.  This error is
fixed to show the correct timeline number in the report.

This error report would be confusing for users if seen, because it would
provide an incorrect information, so backpatch all the way down.

Oversight in 0d8c9c1210c4.

Author: Man Zeng <zengman@halodbtech.com>
Discussion: https://postgr.es/m/tencent_0F2949C4594556F672CF4658@qq.com
Backpatch-through: 14

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f1dc7a5b760939372c56110a7286d86aec78769e

Modified Files
--------------
src/backend/replication/backup_manifest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Remove useless asserts in report_namespace_conflict()
Next
From: Tom Lane
Date:
Subject: pgsql: Update time zone data files to tzdata release 2025c.