Emit msg correctly for timeline-crossing crash

pull/4/head
Simon Riggs 13 years ago
parent c94dff4c3c
commit 1781744cfc
  1. 2
      src/backend/access/transam/xlog.c

@ -5281,7 +5281,7 @@ StartupXLOG(void)
ereport(LOG,
(errmsg("database system was not properly shut down; "
"automatic recovery in progress")));
if (recoveryTargetTLI > 0)
if (recoveryTargetTLI > ControlFile->checkPointCopy.ThisTimeLineID)
ereport(LOG,
(errmsg("crash recovery starts in timeline %u "
"and has target timeline %u",

Loading…
Cancel
Save