Skip to content

Commit 380d1ee

Browse files
committed
Update error messages, per notes from Tom.
Laurenz Albe
1 parent 1975090 commit 380d1ee

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/backend/access/transam/xlog.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.299 2008/04/23 13:44:58 mha Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.300 2008/04/24 14:23:43 mha Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -7101,14 +7101,15 @@ CancelBackup(void)
71017101
{
71027102
ereport(LOG,
71037103
(errmsg("online backup mode cancelled"),
7104-
errdetail("\"%s\" renamed to \"%s\"",
7104+
errdetail("\"%s\" was renamed to \"%s\".",
71057105
BACKUP_LABEL_FILE, BACKUP_LABEL_OLD)));
71067106
}
71077107
else
71087108
{
71097109
ereport(WARNING,
71107110
(errcode_for_file_access(),
7111-
errmsg("could not rename \"%s\" to \"%s\", backup mode not cancelled: %m",
7111+
errmsg("online backup mode was not cancelled"),
7112+
errdetail("Could not rename \"%s\" to \"%s\": %m.",
71127113
BACKUP_LABEL_FILE, BACKUP_LABEL_OLD)));
71137114
}
71147115
}

src/bin/pg_ctl/pg_ctl.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
66
*
7-
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.97 2008/04/23 13:44:59 mha Exp $
7+
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.98 2008/04/24 14:23:43 mha Exp $
88
*
99
*-------------------------------------------------------------------------
1010
*/
@@ -767,8 +767,8 @@ do_stop(void)
767767
{
768768
if ((shutdown_mode == SMART_MODE) && (stat(backup_file, &statbuf) == 0))
769769
{
770-
print_msg(_("WARNING: online backup mode is active; must be ended\n"
771-
" with pg_stop_backup() for shutdown to complete\n\n"));
770+
print_msg(_("WARNING: online backup mode is active.\n"
771+
"Shutdown will not complete until pg_stop_backup() is called.\n\n"));
772772
}
773773

774774
print_msg(_("waiting for server to shut down..."));
@@ -844,8 +844,8 @@ do_restart(void)
844844

845845
if ((shutdown_mode == SMART_MODE) && (stat(backup_file, &statbuf) == 0))
846846
{
847-
print_msg(_("WARNING: online backup mode is active; must be ended\n"
848-
" with pg_stop_backup() for shutdown to complete\n\n"));
847+
print_msg(_("WARNING: online backup mode is active.\n"
848+
"Shutdown will not complete until pg_stop_backup() is called.\n\n"));
849849
}
850850

851851
print_msg(_("waiting for server to shut down..."));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy