* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.372 2010/02/12 07:56:36 heikki Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.373 2010/02/12 09:49:08 heikki Exp $
  *
  *-------------------------------------------------------------------------
  */
                        RECOVERY_COMMAND_FILE)));
    }
 
-   ereport(LOG,
-           (errmsg("starting archive recovery")));
-
    /*
     * Parse the file...
     */
        if (strcmp(tok1, "restore_command") == 0)
        {
            recoveryRestoreCommand = pstrdup(tok2);
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("restore_command = '%s'",
                            recoveryRestoreCommand)));
        }
        else if (strcmp(tok1, "recovery_end_command") == 0)
        {
            recoveryEndCommand = pstrdup(tok2);
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("recovery_end_command = '%s'",
                            recoveryEndCommand)));
        }
                                    tok2)));
            }
            if (rtli)
-               ereport(LOG,
+               ereport(DEBUG2,
                        (errmsg("recovery_target_timeline = %u", rtli)));
            else
-               ereport(LOG,
+               ereport(DEBUG2,
                        (errmsg("recovery_target_timeline = latest")));
        }
        else if (strcmp(tok1, "recovery_target_xid") == 0)
                ereport(FATAL,
                 (errmsg("recovery_target_xid is not a valid number: \"%s\"",
                         tok2)));
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("recovery_target_xid = %u",
                            recoveryTargetXid)));
            recoveryTarget = true;
                                                        CStringGetDatum(tok2),
                                                ObjectIdGetDatum(InvalidOid),
                                                        Int32GetDatum(-1)));
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("recovery_target_time = '%s'",
                            timestamptz_to_str(recoveryTargetTime))));
        }
                ereport(ERROR,
                        (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                         errmsg("parameter \"recovery_target_inclusive\" requires a Boolean value")));
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("recovery_target_inclusive = %s", tok2)));
        }
        else if (strcmp(tok1, "standby_mode") == 0)
                ereport(ERROR,
                        (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
                         errmsg("parameter \"standby_mode\" requires a Boolean value")));
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("standby_mode = '%s'", tok2)));
        }
        else if (strcmp(tok1, "primary_conninfo") == 0)
        {
            PrimaryConnInfo = pstrdup(tok2);
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("primary_conninfo = '%s'",
                            PrimaryConnInfo)));
        }
        else if (strcmp(tok1, "trigger_file") == 0)
        {
            TriggerFile = pstrdup(tok2);
-           ereport(LOG,
+           ereport(DEBUG2,
                    (errmsg("trigger_file = '%s'",
                            TriggerFile)));
        }
         */
        if (InArchiveRecovery)
        {
-           ereport(LOG,
-                   (errmsg("automatic recovery in progress")));
+           if (StandbyMode)
+               ereport(LOG,
+                       (errmsg("entering standby mode")));
+           else if (recoveryTarget)
+           {
+               if (recoveryTargetExact)
+                   ereport(LOG,
+                           (errmsg("starting point-in-time recovery to XID %u",
+                                   recoveryTargetXid)));
+               else
+                   ereport(LOG,
+                           (errmsg("starting point-in-time recovery to %s",
+                                   timestamptz_to_str(recoveryTargetTime))));
+           }
+           else
+               ereport(LOG,
+                       (errmsg("starting archive recovery")));
            ControlFile->state = DB_IN_ARCHIVE_RECOVERY;
        }
        else
 
            CheckRequiredParameterValues(checkPoint);
 
-           ereport(LOG,
-               (errmsg("initializing recovery connections")));
+           ereport(DEBUG1,
+                   (errmsg("initializing recovery connections")));
 
            InitRecoveryTransactionEnvironment();