From: Simon Riggs Date: Sun, 19 May 2013 16:00:18 +0000 (+0100) Subject: Emit msg correctly for timeline-crossing crash X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=1781744cfcfeed6e3ad2e4d52dbd475a95be03a0;p=users%2Fbernd%2Fpostgres.git Emit msg correctly for timeline-crossing crash --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index ce31c05492..ceb20b7917 100644 --- a/src/backend/access/transam/xlog.c +++ b/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",