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
74e629cb
Commit
74e629cb
authored
Mar 10, 2013
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_basebackup: Add missing newlines to several error messages
parent
f7951eef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_basebackup.c
+4
-4
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/receivelog.c
+2
-2
No files found.
src/bin/pg_basebackup/pg_basebackup.c
View file @
74e629cb
...
@@ -1134,14 +1134,14 @@ GenerateRecoveryConf(PGconn *conn)
...
@@ -1134,14 +1134,14 @@ GenerateRecoveryConf(PGconn *conn)
recoveryconfcontents
=
createPQExpBuffer
();
recoveryconfcontents
=
createPQExpBuffer
();
if
(
!
recoveryconfcontents
)
if
(
!
recoveryconfcontents
)
{
{
fprintf
(
stderr
,
_
(
"%s: out of memory"
),
progname
);
fprintf
(
stderr
,
_
(
"%s: out of memory
\n
"
),
progname
);
disconnect_and_exit
(
1
);
disconnect_and_exit
(
1
);
}
}
connOptions
=
PQconninfo
(
conn
);
connOptions
=
PQconninfo
(
conn
);
if
(
connOptions
==
NULL
)
if
(
connOptions
==
NULL
)
{
{
fprintf
(
stderr
,
_
(
"%s: out of memory"
),
progname
);
fprintf
(
stderr
,
_
(
"%s: out of memory
\n
"
),
progname
);
disconnect_and_exit
(
1
);
disconnect_and_exit
(
1
);
}
}
...
@@ -1179,7 +1179,7 @@ GenerateRecoveryConf(PGconn *conn)
...
@@ -1179,7 +1179,7 @@ GenerateRecoveryConf(PGconn *conn)
appendPQExpBufferStr
(
recoveryconfcontents
,
"'
\n
"
);
appendPQExpBufferStr
(
recoveryconfcontents
,
"'
\n
"
);
if
(
PQExpBufferBroken
(
recoveryconfcontents
))
if
(
PQExpBufferBroken
(
recoveryconfcontents
))
{
{
fprintf
(
stderr
,
_
(
"%s: out of memory"
),
progname
);
fprintf
(
stderr
,
_
(
"%s: out of memory
\n
"
),
progname
);
disconnect_and_exit
(
1
);
disconnect_and_exit
(
1
);
}
}
...
@@ -1202,7 +1202,7 @@ WriteRecoveryConf(void)
...
@@ -1202,7 +1202,7 @@ WriteRecoveryConf(void)
cf
=
fopen
(
filename
,
"w"
);
cf
=
fopen
(
filename
,
"w"
);
if
(
cf
==
NULL
)
if
(
cf
==
NULL
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not create file
%s: %s
"
),
progname
,
filename
,
strerror
(
errno
));
fprintf
(
stderr
,
_
(
"%s: could not create file
\"
%s
\"
: %s
\n
"
),
progname
,
filename
,
strerror
(
errno
));
disconnect_and_exit
(
1
);
disconnect_and_exit
(
1
);
}
}
...
...
src/bin/pg_basebackup/receivelog.c
View file @
74e629cb
...
@@ -313,7 +313,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co
...
@@ -313,7 +313,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co
fd
=
open
(
tmppath
,
O_WRONLY
|
O_CREAT
|
PG_BINARY
,
S_IRUSR
|
S_IWUSR
);
fd
=
open
(
tmppath
,
O_WRONLY
|
O_CREAT
|
PG_BINARY
,
S_IRUSR
|
S_IWUSR
);
if
(
fd
<
0
)
if
(
fd
<
0
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not create timeline history file
\"
%s
\"
: %s"
),
fprintf
(
stderr
,
_
(
"%s: could not create timeline history file
\"
%s
\"
: %s
\n
"
),
progname
,
tmppath
,
strerror
(
errno
));
progname
,
tmppath
,
strerror
(
errno
));
return
false
;
return
false
;
}
}
...
@@ -329,7 +329,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co
...
@@ -329,7 +329,7 @@ writeTimeLineHistoryFile(char *basedir, TimeLineID tli, char *filename, char *co
unlink
(
tmppath
);
unlink
(
tmppath
);
errno
=
save_errno
;
errno
=
save_errno
;
fprintf
(
stderr
,
_
(
"%s: could not write timeline history file
\"
%s
\"
: %s"
),
fprintf
(
stderr
,
_
(
"%s: could not write timeline history file
\"
%s
\"
: %s
\n
"
),
progname
,
tmppath
,
strerror
(
errno
));
progname
,
tmppath
,
strerror
(
errno
));
return
false
;
return
false
;
}
}
...
...
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