Add more LOG messages when starting and ending recovery from a backup
authorMichael Paquier <michael@paquier.xyz>
Thu, 25 Jan 2024 08:07:56 +0000 (17:07 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 25 Jan 2024 08:07:56 +0000 (17:07 +0900)
commit1d35f705e191581784e9df89bb69b7867ac9c342
tree5b42c2b536ea6bb14b72777613a54bf717b70b14
parentc393308b69d229b664391ac583b9e07418d411b6
Add more LOG messages when starting and ending recovery from a backup

Three LOG messages are added in the recovery code paths, providing
information that can be useful to track corruption issues depending on
the state of the cluster, telling that:
- Recovery has started from a backup_label.
- Recovery is restarting from a backup start LSN, without a
backup_label.
- Recovery has completed from a backup.

Author: Andres Freund
Reviewed-by: David Steele, Laurenz Albe, Michael Paquier
Discussion: https://postgr.es/m/20231117041811.vz4vgkthwjnwp2pp@awork3.anarazel.de
src/backend/access/transam/xlogrecovery.c