pgsql: Add more LOG messages when starting and ending recovery from a b

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add more LOG messages when starting and ending recovery from a b
Date: 2024-01-25 08:10:15
Message-ID: E1rSuoR-0030qw-7Z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d35f705e191581784e9df89bb69b7867ac9c342

Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 34 +++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Langote 2024-01-25 08:12:37 pgsql: Silence compiler warning introduced in 1edb3b491b
Previous Message Amit Kapila 2024-01-25 06:58:32 pgsql: Allow to enable failover property for replication slots via SQL