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
85612039
Commit
85612039
authored
Aug 14, 2011
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Message style improvements
parent
7431cb25
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
contrib/pg_archivecleanup/pg_archivecleanup.c
contrib/pg_archivecleanup/pg_archivecleanup.c
+2
-2
contrib/pg_standby/pg_standby.c
contrib/pg_standby/pg_standby.c
+7
-6
No files found.
contrib/pg_archivecleanup/pg_archivecleanup.c
View file @
85612039
...
@@ -83,7 +83,7 @@ Initialize(void)
...
@@ -83,7 +83,7 @@ Initialize(void)
if
(
stat
(
archiveLocation
,
&
stat_buf
)
!=
0
||
if
(
stat
(
archiveLocation
,
&
stat_buf
)
!=
0
||
!
S_ISDIR
(
stat_buf
.
st_mode
))
!
S_ISDIR
(
stat_buf
.
st_mode
))
{
{
fprintf
(
stderr
,
"%s: archive
L
ocation
\"
%s
\"
does not exist
\n
"
,
fprintf
(
stderr
,
"%s: archive
l
ocation
\"
%s
\"
does not exist
\n
"
,
progname
,
archiveLocation
);
progname
,
archiveLocation
);
exit
(
2
);
exit
(
2
);
}
}
...
@@ -135,7 +135,7 @@ CleanupPriorWALFiles(void)
...
@@ -135,7 +135,7 @@ CleanupPriorWALFiles(void)
closedir
(
xldir
);
closedir
(
xldir
);
}
}
else
else
fprintf
(
stderr
,
"%s: could not open archive
L
ocation
\"
%s
\"
: %s
\n
"
,
fprintf
(
stderr
,
"%s: could not open archive
l
ocation
\"
%s
\"
: %s
\n
"
,
progname
,
archiveLocation
,
strerror
(
errno
));
progname
,
archiveLocation
,
strerror
(
errno
));
}
}
...
...
contrib/pg_standby/pg_standby.c
View file @
85612039
...
@@ -173,7 +173,7 @@ CustomizableInitialize(void)
...
@@ -173,7 +173,7 @@ CustomizableInitialize(void)
*/
*/
if
(
stat
(
archiveLocation
,
&
stat_buf
)
!=
0
)
if
(
stat
(
archiveLocation
,
&
stat_buf
)
!=
0
)
{
{
fprintf
(
stderr
,
"%s: archive
L
ocation
\"
%s
\"
does not exist
\n
"
,
progname
,
archiveLocation
);
fprintf
(
stderr
,
"%s: archive
l
ocation
\"
%s
\"
does not exist
\n
"
,
progname
,
archiveLocation
);
fflush
(
stderr
);
fflush
(
stderr
);
exit
(
2
);
exit
(
2
);
}
}
...
@@ -283,12 +283,12 @@ CustomizableCleanupPriorWALFiles(void)
...
@@ -283,12 +283,12 @@ CustomizableCleanupPriorWALFiles(void)
#endif
#endif
if
(
debug
)
if
(
debug
)
fprintf
(
stderr
,
"
\n
removing
\"
%s
\"
"
,
WALFilePath
);
fprintf
(
stderr
,
"
\n
removing
file
\"
%s
\"
"
,
WALFilePath
);
rc
=
unlink
(
WALFilePath
);
rc
=
unlink
(
WALFilePath
);
if
(
rc
!=
0
)
if
(
rc
!=
0
)
{
{
fprintf
(
stderr
,
"
\n
%s: ERROR
failed to remove
\"
%s
\"
: %s
"
,
fprintf
(
stderr
,
"
\n
%s: ERROR
: could not remove file
\"
%s
\"
: %s
\n
"
,
progname
,
WALFilePath
,
strerror
(
errno
));
progname
,
WALFilePath
,
strerror
(
errno
));
break
;
break
;
}
}
...
@@ -298,7 +298,8 @@ CustomizableCleanupPriorWALFiles(void)
...
@@ -298,7 +298,8 @@ CustomizableCleanupPriorWALFiles(void)
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
}
}
else
else
fprintf
(
stderr
,
"%s: archiveLocation
\"
%s
\"
open error
\n
"
,
progname
,
archiveLocation
);
fprintf
(
stderr
,
"%s: could not open archive location
\"
%s
\"
: %s
\n
"
,
progname
,
archiveLocation
,
strerror
(
errno
));
closedir
(
xldir
);
closedir
(
xldir
);
fflush
(
stderr
);
fflush
(
stderr
);
...
@@ -693,7 +694,7 @@ main(int argc, char **argv)
...
@@ -693,7 +694,7 @@ main(int argc, char **argv)
}
}
else
else
{
{
fprintf
(
stderr
,
"%s:
use %%f to specify nextWALFileName
\n
"
,
progname
);
fprintf
(
stderr
,
"%s:
must specify WAL file name as second non-option argument (use
\"
%%f
\"
)
\n
"
,
progname
);
fprintf
(
stderr
,
"Try
\"
%s --help
\"
for more information.
\n
"
,
progname
);
fprintf
(
stderr
,
"Try
\"
%s --help
\"
for more information.
\n
"
,
progname
);
exit
(
2
);
exit
(
2
);
}
}
...
@@ -705,7 +706,7 @@ main(int argc, char **argv)
...
@@ -705,7 +706,7 @@ main(int argc, char **argv)
}
}
else
else
{
{
fprintf
(
stderr
,
"%s:
use %%p to specify xlogFilePath
\n
"
,
progname
);
fprintf
(
stderr
,
"%s:
must specify xlog destination as third non-option argument (use
\"
%%p
\"
)
\n
"
,
progname
);
fprintf
(
stderr
,
"Try
\"
%s --help
\"
for more information.
\n
"
,
progname
);
fprintf
(
stderr
,
"Try
\"
%s --help
\"
for more information.
\n
"
,
progname
);
exit
(
2
);
exit
(
2
);
}
}
...
...
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