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
883af819
Commit
883af819
authored
Sep 27, 2015
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_dump: Fix some messages
Make quoting style match existing style. Improve plural support.
parent
71fc49df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+3
-3
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+10
-10
src/bin/pg_dump/pg_dump_sort.c
src/bin/pg_dump/pg_dump_sort.c
+3
-1
No files found.
src/bin/pg_dump/pg_backup_archiver.c
View file @
883af819
...
...
@@ -631,7 +631,7 @@ RestoreArchive(Archive *AHX)
{
/* Show namespace if available */
if
(
te
->
namespace
)
ahlog
(
AH
,
1
,
"setting owner and privileges for %s
\"
%s
\"
.
\"
%s
\"\n
"
,
ahlog
(
AH
,
1
,
"setting owner and privileges for %s
\"
%s
.
%s
\"\n
"
,
te
->
desc
,
te
->
namespace
,
te
->
tag
);
else
ahlog
(
AH
,
1
,
"setting owner and privileges for %s
\"
%s
\"\n
"
,
...
...
@@ -711,7 +711,7 @@ restore_toc_entry(ArchiveHandle *AH, TocEntry *te,
{
/* Show namespace if available */
if
(
te
->
namespace
)
ahlog
(
AH
,
1
,
"creating %s
\"
%s
\"
.
\"
%s
\"\n
"
,
ahlog
(
AH
,
1
,
"creating %s
\"
%s
.
%s
\"\n
"
,
te
->
desc
,
te
->
namespace
,
te
->
tag
);
else
ahlog
(
AH
,
1
,
"creating %s
\"
%s
\"\n
"
,
te
->
desc
,
te
->
tag
);
...
...
@@ -807,7 +807,7 @@ restore_toc_entry(ArchiveHandle *AH, TocEntry *te,
_becomeOwner
(
AH
,
te
);
_selectOutputSchema
(
AH
,
te
->
namespace
);
ahlog
(
AH
,
1
,
"processing data for table
\"
%s
\"
.
\"
%s
\"\n
"
,
ahlog
(
AH
,
1
,
"processing data for table
\"
%s
.
%s
\"\n
"
,
te
->
namespace
,
te
->
tag
);
/*
...
...
src/bin/pg_dump/pg_dump.c
View file @
883af819
...
...
@@ -916,7 +916,7 @@ help(const char *progname)
printf
(
_
(
" --quote-all-identifiers quote all identifiers, even if not key words
\n
"
));
printf
(
_
(
" --section=SECTION dump named section (pre-data, data, or post-data)
\n
"
));
printf
(
_
(
" --serializable-deferrable wait until the dump can run without anomalies
\n
"
));
printf
(
_
(
" --snapshot=SNAPSHOT use given s
ynchronous s
napshot for the dump
\n
"
));
printf
(
_
(
" --snapshot=SNAPSHOT use given snapshot for the dump
\n
"
));
printf
(
_
(
" --strict-names require table and/or schema include patterns to
\n
"
" match at least one entity each
\n
"
));
printf
(
_
(
" --use-set-session-authorization
\n
"
...
...
@@ -1455,7 +1455,7 @@ dumpTableData_copy(Archive *fout, DumpOptions *dopt, void *dcontext)
const
char
*
column_list
;
if
(
g_verbose
)
write_msg
(
NULL
,
"dumping contents of table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"dumping contents of table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
classname
);
/*
...
...
@@ -2852,7 +2852,7 @@ getPolicies(Archive *fout, TableInfo tblinfo[], int numTables)
continue
;
if
(
g_verbose
)
write_msg
(
NULL
,
"reading row security enabled for table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"reading row security enabled for table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
@@ -2883,7 +2883,7 @@ getPolicies(Archive *fout, TableInfo tblinfo[], int numTables)
}
if
(
g_verbose
)
write_msg
(
NULL
,
"reading policies for table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"reading policies for table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
@@ -5327,7 +5327,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
continue
;
if
(
g_verbose
)
write_msg
(
NULL
,
"reading indexes for table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"reading indexes for table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
@@ -5694,7 +5694,7 @@ getConstraints(Archive *fout, TableInfo tblinfo[], int numTables)
continue
;
if
(
g_verbose
)
write_msg
(
NULL
,
"reading foreign key constraints for table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"reading foreign key constraints for table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
@@ -6033,7 +6033,7 @@ getTriggers(Archive *fout, TableInfo tblinfo[], int numTables)
continue
;
if
(
g_verbose
)
write_msg
(
NULL
,
"reading triggers for table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"reading triggers for table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
@@ -6767,7 +6767,7 @@ getTableAttrs(Archive *fout, DumpOptions *dopt, TableInfo *tblinfo, int numTable
* the output of an indexscan on pg_attribute_relid_attnum_index.
*/
if
(
g_verbose
)
write_msg
(
NULL
,
"finding the columns and types of table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"finding the columns and types of table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
@@ -6980,7 +6980,7 @@ getTableAttrs(Archive *fout, DumpOptions *dopt, TableInfo *tblinfo, int numTable
int
numDefaults
;
if
(
g_verbose
)
write_msg
(
NULL
,
"finding default expressions of table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"finding default expressions of table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
@@ -7105,7 +7105,7 @@ getTableAttrs(Archive *fout, DumpOptions *dopt, TableInfo *tblinfo, int numTable
int
numConstrs
;
if
(
g_verbose
)
write_msg
(
NULL
,
"finding check constraints for table
\"
%s
\"
.
\"
%s
\"\n
"
,
write_msg
(
NULL
,
"finding check constraints for table
\"
%s
.
%s
\"\n
"
,
tbinfo
->
dobj
.
namespace
->
dobj
.
name
,
tbinfo
->
dobj
.
name
);
...
...
src/bin/pg_dump/pg_dump_sort.c
View file @
883af819
...
...
@@ -1247,7 +1247,9 @@ repairDependencyLoop(DumpableObject **loop,
}
if
(
i
>=
nLoop
)
{
write_msg
(
NULL
,
"NOTICE: there are circular foreign-key constraints among these table(s):
\n
"
);
write_msg
(
NULL
,
ngettext
(
"NOTICE: there are circular foreign-key constraints on this table:
\n
"
,
"NOTICE: there are circular foreign-key constraints among these tables:
\n
"
,
nLoop
));
for
(
i
=
0
;
i
<
nLoop
;
i
++
)
write_msg
(
NULL
,
" %s
\n
"
,
loop
[
i
]
->
name
);
write_msg
(
NULL
,
"You might not be able to restore the dump without using --disable-triggers or temporarily dropping the constraints.
\n
"
);
...
...
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