Improve FATAL message for invalid TLI history at recovery
authorMichael Paquier <michael@paquier.xyz>
Wed, 26 Feb 2025 05:26:16 +0000 (14:26 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 26 Feb 2025 05:26:16 +0000 (14:26 +0900)
commitadc6032fa8824e7653252b02abc6a59d8b9d01a6
tree135f52ac563ac09cdeb29d04f5e59757ad8efbe4
parent6ee3b91bad269b8f1acee38607bd17923efd6e06
Improve FATAL message for invalid TLI history at recovery

The original message did not mention where the checkpoint record LSN was
found, a control file or a backup_label file.  A couple of LOG messages
are generated before this FATAL check is reached, providing more details
about the way recovery is set up.  However, knowing this information in
this specific message is useful for debugging.  This is also useful for
instances where log_min_messages is set to FATAL or more, where LOG
messages do not show up.

Author: Benoit LobrĂ©au <benoit.lobreau@dalibo.com>
Reviewed-by: David Steele <david@pgbackrest.org>
Discussion: https://postgr.es/m/4ed10bc8-5513-4d8e-8643-8abcaa08336d@dalibo.com
src/backend/access/transam/xlogrecovery.c