Update error messages, per notes from Tom.
authorMagnus Hagander <magnus@hagander.net>
Thu, 24 Apr 2008 14:23:43 +0000 (14:23 +0000)
committerMagnus Hagander <magnus@hagander.net>
Thu, 24 Apr 2008 14:23:43 +0000 (14:23 +0000)
Laurenz Albe

src/backend/access/transam/xlog.c
src/bin/pg_ctl/pg_ctl.c

index 7ed3a7187dc042a9ab9c50a2be68bd1feafb3616..9c16654abcc44c9ae6241d4f64fc00e60baa4bab 100644 (file)
@@ -7101,14 +7101,15 @@ CancelBackup(void)
        {
                ereport(LOG,
                                (errmsg("online backup mode cancelled"),
-                                errdetail("\"%s\" renamed to \"%s\"",
+                                errdetail("\"%s\" was renamed to \"%s\".",
                                                BACKUP_LABEL_FILE, BACKUP_LABEL_OLD)));
        }
        else
        {
                ereport(WARNING,
                                (errcode_for_file_access(),
-                                errmsg("could not rename \"%s\" to \"%s\", backup mode not cancelled: %m",
+                                errmsg("online backup mode was not cancelled"),
+                                errdetail("Could not rename \"%s\" to \"%s\": %m.",
                                                BACKUP_LABEL_FILE, BACKUP_LABEL_OLD)));
        }
 }
index ec4385cfac157619ef602ede085cf7a6c0d32bd8..37757dd7fab5be01b5cab64ee6a3981d5438bd17 100644 (file)
@@ -767,8 +767,8 @@ do_stop(void)
        {
                if ((shutdown_mode == SMART_MODE) && (stat(backup_file, &statbuf) == 0))
                {
-                       print_msg(_("WARNING: online backup mode is active; must be ended\n"
-                                               "   with pg_stop_backup() for shutdown to complete\n\n"));
+                       print_msg(_("WARNING: online backup mode is active.\n"
+                                               "Shutdown will not complete until pg_stop_backup() is called.\n\n"));
                }
 
                print_msg(_("waiting for server to shut down..."));
@@ -844,8 +844,8 @@ do_restart(void)
 
                if ((shutdown_mode == SMART_MODE) && (stat(backup_file, &statbuf) == 0))
                {
-                       print_msg(_("WARNING: online backup mode is active; must be ended\n"
-                                               "   with pg_stop_backup() for shutdown to complete\n\n"));
+                       print_msg(_("WARNING: online backup mode is active.\n"
+                                               "Shutdown will not complete until pg_stop_backup() is called.\n\n"));
                }
 
                print_msg(_("waiting for server to shut down..."));