mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Emit msg correctly for timeline-crossing crash
This commit is contained in:
parent
c94dff4c3c
commit
1781744cfc
@ -5281,7 +5281,7 @@ StartupXLOG(void)
|
|||||||
ereport(LOG,
|
ereport(LOG,
|
||||||
(errmsg("database system was not properly shut down; "
|
(errmsg("database system was not properly shut down; "
|
||||||
"automatic recovery in progress")));
|
"automatic recovery in progress")));
|
||||||
if (recoveryTargetTLI > 0)
|
if (recoveryTargetTLI > ControlFile->checkPointCopy.ThisTimeLineID)
|
||||||
ereport(LOG,
|
ereport(LOG,
|
||||||
(errmsg("crash recovery starts in timeline %u "
|
(errmsg("crash recovery starts in timeline %u "
|
||||||
"and has target timeline %u",
|
"and has target timeline %u",
|
||||||
|
Loading…
Reference in New Issue
Block a user