forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitedbd1b4
committed
Add more LOG messages when starting and ending recovery from a backup
Three LOG messages are added in the recovery code paths, providinginformation that can be useful to track corruption issues depending onthe state of the cluster, telling that:- Recovery has started from a backup_label.- Recovery is restarting from a backup start LSN, without abackup_label.- Recovery has completed from a backup.This was originally applied on HEAD as of1d35f70, and there isconsensus that this can be useful for older versions. This appliescleanly down to 15, so do it down to this version for now (olderversions have heavily refactored the WAL recovery paths, making thechange less straight-forward to do).Author: Andres FreundReviewed-by: David Steele, Laurenz Albe, Michael PaquierDiscussion:https://postgr.es/m/20231117041811.vz4vgkthwjnwp2pp@awork3.anarazel.deBackpatch-through: 151 parentf57a580 commitedbd1b4
1 file changed
+34
-0
lines changedLines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
623 | 623 |
| |
624 | 624 |
| |
625 | 625 |
| |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
626 | 642 |
| |
627 | 643 |
| |
628 | 644 |
| |
| |||
761 | 777 |
| |
762 | 778 |
| |
763 | 779 |
| |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
764 | 790 |
| |
765 | 791 |
| |
766 | 792 |
| |
| |||
2123 | 2149 |
| |
2124 | 2150 |
| |
2125 | 2151 |
| |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
2126 | 2155 |
| |
2127 | 2156 |
| |
2128 | 2157 |
| |
| |||
2133 | 2162 |
| |
2134 | 2163 |
| |
2135 | 2164 |
| |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
2136 | 2170 |
| |
2137 | 2171 |
| |
2138 | 2172 |
| |
|
0 commit comments
Comments
(0)