]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix error message related to end TLI in backup manifest
authorMichael Paquier <michael@paquier.xyz>
Sun, 18 Jan 2026 08:24:25 +0000 (17:24 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 18 Jan 2026 08:24:25 +0000 (17:24 +0900)
commit6bca4b50d000e840cad17a9dd6cb46785fb2cedb
tree99026e1d332aaf5d4c43f4acee6d1f0c46cf4547
parent2a6ce34b55e1cbb16a507c2e90c626eef71018b7
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
src/backend/backup/backup_manifest.c