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
a49f6ad0
Commit
a49f6ad0
authored
Oct 15, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add full path in error report for version mismatch of binaries.
parent
8ff374ce
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
19 deletions
+36
-19
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+12
-6
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_ctl/pg_ctl.c
+12
-7
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_dumpall.c
+12
-6
No files found.
src/bin/initdb/initdb.c
View file @
a49f6ad0
...
...
@@ -39,7 +39,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.6
1 2004/10/12 21:54:42 petere
Exp $
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.6
2 2004/10/15 04:31:48 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2268,18 +2268,24 @@ main(int argc, char *argv[])
if
((
ret
=
find_other_exec
(
argv
[
0
],
"postgres"
,
PG_VERSIONSTR
,
backend_exec
))
<
0
)
{
char
full_path
[
MAXPGPATH
];
if
(
find_my_exec
(
argv
[
0
],
full_path
)
<
0
)
StrNCpy
(
full_path
,
progname
,
MAXPGPATH
);
if
(
ret
==
-
1
)
fprintf
(
stderr
,
_
(
"The program
\"
postgres
\"
is needed by %s "
"but was not found in the same directory as
\"
%s
\"
.
\n
"
"but was not found in the
\n
"
"same directory as
\"
%s
\"
.
\n
"
"Check your installation.
\n
"
),
progname
,
progname
);
progname
,
full_path
);
else
fprintf
(
stderr
,
_
(
"The program
\"
postgres
\"
was found by
%s
"
"but was not the same version as
\"
%s
\"
.
\n
"
_
(
"The program
\"
postgres
\"
was found by
\"
%s
\"\n
"
"but was not the same version as
%s
.
\n
"
"Check your installation.
\n
"
),
progname
,
progname
);
full_path
,
progname
);
exit
(
1
);
}
...
...
src/bin/pg_ctl/pg_ctl.c
View file @
a49f6ad0
...
...
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.3
6 2004/10/15 01:36:12 neilc
Exp $
* $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.3
7 2004/10/15 04:32:14 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -531,17 +531,22 @@ do_start(void)
if
((
ret
=
find_other_exec
(
argv0
,
"postmaster"
,
PM_VERSIONSTR
,
postmaster_path
))
<
0
)
{
char
full_path
[
MAXPGPATH
];
if
(
find_my_exec
(
argv0
,
full_path
)
<
0
)
StrNCpy
(
full_path
,
progname
,
MAXPGPATH
);
if
(
ret
==
-
1
)
write_stderr
(
_
(
"The program
\"
postmaster
\"
is needed by %s "
"but was not found in the same directory as
"
"
\"
%s
\"
.
\n
"
"but was not found in the
\n
"
"
same directory as
\"
%s
\"
.
\n
"
"Check your installation.
\n
"
),
progname
,
progname
);
progname
,
full_path
);
else
write_stderr
(
_
(
"The program
\"
postmaster
\"
was found by
%s
"
"but was not the same version as
\"
%s
\"
.
\n
"
write_stderr
(
_
(
"The program
\"
postmaster
\"
was found by
\"
%s
\"\n
"
"but was not the same version as
%s
.
\n
"
"Check your installation.
\n
"
),
progname
,
progname
);
full_path
,
progname
);
exit
(
1
);
}
postgres_path
=
postmaster_path
;
...
...
src/bin/pg_dump/pg_dumpall.c
View file @
a49f6ad0
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.5
2 2004/10/06 17:02:02
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.5
3 2004/10/15 04:32:28
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -139,18 +139,24 @@ main(int argc, char *argv[])
if
((
ret
=
find_other_exec
(
argv
[
0
],
"pg_dump"
,
PG_VERSIONSTR
,
pg_dump_bin
))
<
0
)
{
char
full_path
[
MAXPGPATH
];
if
(
find_my_exec
(
argv
[
0
],
full_path
)
<
0
)
StrNCpy
(
full_path
,
progname
,
MAXPGPATH
);
if
(
ret
==
-
1
)
fprintf
(
stderr
,
_
(
"The program
\"
pg_dump
\"
is needed by %s "
"but was not found in the same directory as
\"
%s
\"
.
\n
"
"but was not found in the
\n
"
"same directory as
\"
%s
\"
.
\n
"
"Check your installation.
\n
"
),
progname
,
progname
);
progname
,
full_path
);
else
fprintf
(
stderr
,
_
(
"The program
\"
pg_dump
\"
was found by
%s
"
"but was not the same version as
\"
%s
\"
.
\n
"
_
(
"The program
\"
pg_dump
\"
was found by
\"
%s
\"\n
"
"but was not the same version as
%s
.
\n
"
"Check your installation.
\n
"
),
progname
,
progname
);
full_path
,
progname
);
exit
(
1
);
}
...
...
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