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
27d18ffc
Commit
27d18ffc
authored
Nov 07, 2007
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error message cleanup
parent
5f9869d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+5
-5
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_dumpall.c
+6
-5
No files found.
src/bin/pg_dump/pg_dump.c
View file @
27d18ffc
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* by PostgreSQL
* by PostgreSQL
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.47
3 2007/10/13 20:18:41 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.47
4 2007/11/07 13:11:05 petere
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -463,19 +463,19 @@ main(int argc, char **argv)
...
@@ -463,19 +463,19 @@ main(int argc, char **argv)
if
(
dataOnly
&&
schemaOnly
)
if
(
dataOnly
&&
schemaOnly
)
{
{
write_msg
(
NULL
,
"options
\"
schema only
\"
(-s) and
\"
data only
\"
(-a)
cannot be used together
\n
"
);
write_msg
(
NULL
,
"options
-s/--schema-only and -a/--data-only
cannot be used together
\n
"
);
exit
(
1
);
exit
(
1
);
}
}
if
(
dataOnly
&&
outputClean
)
if
(
dataOnly
&&
outputClean
)
{
{
write_msg
(
NULL
,
"options
\"
clean
\"
(-c) and
\"
data only
\"
(-a)
cannot be used together
\n
"
);
write_msg
(
NULL
,
"options
-c/--clean and -a/--data-only
cannot be used together
\n
"
);
exit
(
1
);
exit
(
1
);
}
}
if
(
dumpInserts
==
true
&&
oids
==
true
)
if
(
dumpInserts
==
true
&&
oids
==
true
)
{
{
write_msg
(
NULL
,
"
INSERT (-d, -D) and OID (-o) option
s cannot be used together
\n
"
);
write_msg
(
NULL
,
"
options -d/-D/--inserts/--column-inserts and -o/--oid
s cannot be used together
\n
"
);
write_msg
(
NULL
,
"(The INSERT command cannot set OIDs.)
\n
"
);
write_msg
(
NULL
,
"(The INSERT command cannot set OIDs.)
\n
"
);
exit
(
1
);
exit
(
1
);
}
}
...
@@ -5524,7 +5524,7 @@ dumpEnumType(Archive *fout, TypeInfo *tinfo)
...
@@ -5524,7 +5524,7 @@ dumpEnumType(Archive *fout, TypeInfo *tinfo)
/* should be at least 1 value */
/* should be at least 1 value */
if
(
num
==
0
)
if
(
num
==
0
)
{
{
write_msg
(
NULL
,
"
No rows found for enum"
);
write_msg
(
NULL
,
"
no label definitions found for enum ID %u"
,
tinfo
->
dobj
.
catId
.
oid
);
exit_nicely
();
exit_nicely
();
}
}
...
...
src/bin/pg_dump/pg_dumpall.c
View file @
27d18ffc
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
*
*
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.9
5 2007/11/07 12:24:24
petere Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.9
6 2007/11/07 13:11:05
petere Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -329,7 +329,7 @@ main(int argc, char *argv[])
...
@@ -329,7 +329,7 @@ main(int argc, char *argv[])
/* Make sure the user hasn't specified a mix of globals-only options */
/* Make sure the user hasn't specified a mix of globals-only options */
if
(
globals_only
&&
roles_only
)
if
(
globals_only
&&
roles_only
)
{
{
fprintf
(
stderr
,
_
(
"%s:
--globals-only and
--roles-only cannot be used together
\n
"
),
fprintf
(
stderr
,
_
(
"%s:
options -g/--globals-only and -r/
--roles-only cannot be used together
\n
"
),
progname
);
progname
);
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
progname
);
progname
);
...
@@ -338,7 +338,7 @@ main(int argc, char *argv[])
...
@@ -338,7 +338,7 @@ main(int argc, char *argv[])
if
(
globals_only
&&
tablespaces_only
)
if
(
globals_only
&&
tablespaces_only
)
{
{
fprintf
(
stderr
,
_
(
"%s:
--globals-only and
--tablespaces-only cannot be used together
\n
"
),
fprintf
(
stderr
,
_
(
"%s:
options -g/--globals-only and -t/
--tablespaces-only cannot be used together
\n
"
),
progname
);
progname
);
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
progname
);
progname
);
...
@@ -347,7 +347,7 @@ main(int argc, char *argv[])
...
@@ -347,7 +347,7 @@ main(int argc, char *argv[])
if
(
roles_only
&&
tablespaces_only
)
if
(
roles_only
&&
tablespaces_only
)
{
{
fprintf
(
stderr
,
_
(
"%s:
--roles-only and
--tablespaces-only cannot be used together
\n
"
),
fprintf
(
stderr
,
_
(
"%s:
options -r/--roles-only and -t/
--tablespaces-only cannot be used together
\n
"
),
progname
);
progname
);
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
progname
);
progname
);
...
@@ -382,7 +382,8 @@ main(int argc, char *argv[])
...
@@ -382,7 +382,8 @@ main(int argc, char *argv[])
if
(
!
conn
)
if
(
!
conn
)
{
{
fprintf
(
stderr
,
_
(
"%s: could not connect to databases
\"
postgres
\"
or
\"
template1
\"
. Please specify an alternative database
\n
"
),
fprintf
(
stderr
,
_
(
"%s: could not connect to databases
\"
postgres
\"
or
\"
template1
\"\n
"
"Please specify an alternative database.
\n
"
),
progname
);
progname
);
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
fprintf
(
stderr
,
_
(
"Try
\"
%s --help
\"
for more information.
\n
"
),
progname
);
progname
);
...
...
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