Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
380d1ee6
Commit
380d1ee6
authored
Apr 24, 2008
by
Magnus Hagander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update error messages, per notes from Tom.
Laurenz Albe
parent
19750904
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+4
-3
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+5
-5
No files found.
src/backend/access/transam/xlog.c
View file @
380d1ee6
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.
299 2008/04/23 13:44:58
mha Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.
300 2008/04/24 14:23:43
mha Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -7101,14 +7101,15 @@ CancelBackup(void)
...
@@ -7101,14 +7101,15 @@ CancelBackup(void)
{
{
ereport
(
LOG
,
ereport
(
LOG
,
(
errmsg
(
"online backup mode cancelled"
),
(
errmsg
(
"online backup mode cancelled"
),
errdetail
(
"
\"
%s
\"
renamed to
\"
%s
\"
"
,
errdetail
(
"
\"
%s
\"
was renamed to
\"
%s
\"
.
"
,
BACKUP_LABEL_FILE
,
BACKUP_LABEL_OLD
)));
BACKUP_LABEL_FILE
,
BACKUP_LABEL_OLD
)));
}
}
else
else
{
{
ereport
(
WARNING
,
ereport
(
WARNING
,
(
errcode_for_file_access
(),
(
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
)));
BACKUP_LABEL_FILE
,
BACKUP_LABEL_OLD
)));
}
}
}
}
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
380d1ee6
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
*
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.9
7 2008/04/23 13:44:59
mha Exp $
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.9
8 2008/04/24 14:23:43
mha Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -767,8 +767,8 @@ do_stop(void)
...
@@ -767,8 +767,8 @@ do_stop(void)
{
{
if
((
shutdown_mode
==
SMART_MODE
)
&&
(
stat
(
backup_file
,
&
statbuf
)
==
0
))
if
((
shutdown_mode
==
SMART_MODE
)
&&
(
stat
(
backup_file
,
&
statbuf
)
==
0
))
{
{
print_msg
(
_
(
"WARNING: online backup mode is active
; must be ended
\n
"
print_msg
(
_
(
"WARNING: online backup mode is active
.
\n
"
"
with pg_stop_backup() for shutdown to complete
\n\n
"
));
"
Shutdown will not complete until pg_stop_backup() is called.
\n\n
"
));
}
}
print_msg
(
_
(
"waiting for server to shut down..."
));
print_msg
(
_
(
"waiting for server to shut down..."
));
...
@@ -844,8 +844,8 @@ do_restart(void)
...
@@ -844,8 +844,8 @@ do_restart(void)
if
((
shutdown_mode
==
SMART_MODE
)
&&
(
stat
(
backup_file
,
&
statbuf
)
==
0
))
if
((
shutdown_mode
==
SMART_MODE
)
&&
(
stat
(
backup_file
,
&
statbuf
)
==
0
))
{
{
print_msg
(
_
(
"WARNING: online backup mode is active
; must be ended
\n
"
print_msg
(
_
(
"WARNING: online backup mode is active
.
\n
"
"
with pg_stop_backup() for shutdown to complete
\n\n
"
));
"
Shutdown will not complete until pg_stop_backup() is called.
\n\n
"
));
}
}
print_msg
(
_
(
"waiting for server to shut down..."
));
print_msg
(
_
(
"waiting for server to shut down..."
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment