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
c22de398
Commit
c22de398
authored
Mar 26, 2008
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strengthen warnings about using pg_dump's -i option.
parent
530659fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
22 deletions
+21
-22
doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_dump.sgml
+8
-9
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_backup_db.c
+4
-3
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+2
-3
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/pg_dumpall.c
+5
-5
src/bin/pg_dump/pg_restore.c
src/bin/pg_dump/pg_restore.c
+2
-2
No files found.
doc/src/sgml/ref/pg_dump.sgml
View file @
c22de398
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.
99 2008/03/20 17:36:57 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.
100 2008/03/26 14:32:22 momjian
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -296,19 +296,18 @@ PostgreSQL documentation
...
@@ -296,19 +296,18 @@ PostgreSQL documentation
<term><option>--ignore-version</></term>
<term><option>--ignore-version</></term>
<listitem>
<listitem>
<para>
<para>
Ignore
version mismatch
between
Ignore
incompatible version check
between
<application>pg_dump</application> and the database server.
<application>pg_dump</application> and the database server.
</para>
</para>
<para>
<para>
<application>pg_dump</application> can dump from servers running
previous releases of <productname>PostgreSQL</>, but very old
versions are not supported anymore (currently, those prior to 7.0).
Dumping from a server newer than <application>pg_dump</application>
Dumping from a server newer than <application>pg_dump</application>
is likely not to work at all.
is likely fail and is disabled by default.
Use this option if you need to override the version check (and
Also, while <application>pg_dump</application> can dump from servers running
if <application>pg_dump</application> then fails, don't say
previous releases of <productname>PostgreSQL</>, some very old
you weren't warned).
versions are not supported (currently, pre-7.0).
Use this option if you need to override the version check, but
be prepared for <application>pg_dump</application> to fail.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
src/bin/pg_dump/pg_backup_db.c
View file @
c22de398
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* Implements the basic DB functions used by the archiver.
* Implements the basic DB functions used by the archiver.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.7
7 2007/12/09 19:01:40 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.7
8 2008/03/26 14:32:22 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -72,9 +72,10 @@ _check_database_version(ArchiveHandle *AH, bool ignoreVersion)
...
@@ -72,9 +72,10 @@ _check_database_version(ArchiveHandle *AH, bool ignoreVersion)
write_msg
(
NULL
,
"server version: %s; %s version: %s
\n
"
,
write_msg
(
NULL
,
"server version: %s; %s version: %s
\n
"
,
remoteversion_str
,
progname
,
PG_VERSION
);
remoteversion_str
,
progname
,
PG_VERSION
);
if
(
ignoreVersion
)
if
(
ignoreVersion
)
write_msg
(
NULL
,
"
proceeding despite
version mismatch
\n
"
);
write_msg
(
NULL
,
"
ignoring server
version mismatch
\n
"
);
else
else
die_horribly
(
AH
,
NULL
,
"aborting because of version mismatch (Use the -i option to proceed anyway.)
\n
"
);
die_horribly
(
AH
,
NULL
,
"aborting because of server version mismatch
\n
"
"Use the -i option to bypass server version check, but be prepared for failure.
\n
"
);
}
}
}
}
...
...
src/bin/pg_dump/pg_dump.c
View file @
c22de398
...
@@ -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.48
3 2008/03/20 17:36:57 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.48
4 2008/03/26 14:32:22 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -745,8 +745,7 @@ help(const char *progname)
...
@@ -745,8 +745,7 @@ help(const char *progname)
printf
(
_
(
"
\n
General options:
\n
"
));
printf
(
_
(
"
\n
General options:
\n
"
));
printf
(
_
(
" -f, --file=FILENAME output file name
\n
"
));
printf
(
_
(
" -f, --file=FILENAME output file name
\n
"
));
printf
(
_
(
" -F, --format=c|t|p output file format (custom, tar, plain text)
\n
"
));
printf
(
_
(
" -F, --format=c|t|p output file format (custom, tar, plain text)
\n
"
));
printf
(
_
(
" -i, --ignore-version proceed even when server version mismatches
\n
"
printf
(
_
(
" -i, --ignore-version ignore server version mismatch
\n
"
));
" pg_dump version
\n
"
));
printf
(
_
(
" -v, --verbose verbose mode
\n
"
));
printf
(
_
(
" -v, --verbose verbose mode
\n
"
));
printf
(
_
(
" -Z, --compress=0-9 compression level for compressed formats
\n
"
));
printf
(
_
(
" -Z, --compress=0-9 compression level for compressed formats
\n
"
));
printf
(
_
(
" --help show this help, then exit
\n
"
));
printf
(
_
(
" --help show this help, then exit
\n
"
));
...
...
src/bin/pg_dump/pg_dumpall.c
View file @
c22de398
...
@@ -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.10
2 2008/03/20 17:42:51 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.10
3 2008/03/26 14:32:22 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -488,8 +488,7 @@ help(void)
...
@@ -488,8 +488,7 @@ help(void)
printf
(
_
(
"
\n
General options:
\n
"
));
printf
(
_
(
"
\n
General options:
\n
"
));
printf
(
_
(
" -f, --file=FILENAME output file name
\n
"
));
printf
(
_
(
" -f, --file=FILENAME output file name
\n
"
));
printf
(
_
(
" -i, --ignore-version proceed even when server version mismatches
\n
"
printf
(
_
(
" -i, --ignore-version ignore server version mismatch
\n
"
));
" pg_dumpall version
\n
"
));
printf
(
_
(
" --help show this help, then exit
\n
"
));
printf
(
_
(
" --help show this help, then exit
\n
"
));
printf
(
_
(
" --version output version information, then exit
\n
"
));
printf
(
_
(
" --version output version information, then exit
\n
"
));
printf
(
_
(
"
\n
Options controlling the output content:
\n
"
));
printf
(
_
(
"
\n
Options controlling the output content:
\n
"
));
...
@@ -1399,10 +1398,11 @@ connectDatabase(const char *dbname, const char *pghost, const char *pgport,
...
@@ -1399,10 +1398,11 @@ connectDatabase(const char *dbname, const char *pghost, const char *pgport,
fprintf
(
stderr
,
_
(
"server version: %s; %s version: %s
\n
"
),
fprintf
(
stderr
,
_
(
"server version: %s; %s version: %s
\n
"
),
remoteversion_str
,
progname
,
PG_VERSION
);
remoteversion_str
,
progname
,
PG_VERSION
);
if
(
ignoreVersion
)
if
(
ignoreVersion
)
fprintf
(
stderr
,
_
(
"
proceeding despite
version mismatch
\n
"
));
fprintf
(
stderr
,
_
(
"
ignoring server
version mismatch
\n
"
));
else
else
{
{
fprintf
(
stderr
,
_
(
"aborting because of version mismatch (Use the -i option to proceed anyway.)
\n
"
));
fprintf
(
stderr
,
_
(
"aborting because of server version mismatch
\n
"
"Use the -i option to bypass server version check, but be prepared for failure.
\n
"
));
exit
(
1
);
exit
(
1
);
}
}
}
}
...
...
src/bin/pg_dump/pg_restore.c
View file @
c22de398
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.8
6 2008/03/20 17:36:58 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_restore.c,v 1.8
7 2008/03/26 14:32:22 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -378,7 +378,7 @@ usage(const char *progname)
...
@@ -378,7 +378,7 @@ usage(const char *progname)
printf
(
_
(
" -d, --dbname=NAME connect to database name
\n
"
));
printf
(
_
(
" -d, --dbname=NAME connect to database name
\n
"
));
printf
(
_
(
" -f, --file=FILENAME output file name
\n
"
));
printf
(
_
(
" -f, --file=FILENAME output file name
\n
"
));
printf
(
_
(
" -F, --format=c|t specify backup file format
\n
"
));
printf
(
_
(
" -F, --format=c|t specify backup file format
\n
"
));
printf
(
_
(
" -i, --ignore-version
proceed even when server version mismatches
\n
"
));
printf
(
_
(
" -i, --ignore-version
ignore server version mismatch
\n
"
));
printf
(
_
(
" -l, --list print summarized TOC of the archive
\n
"
));
printf
(
_
(
" -l, --list print summarized TOC of the archive
\n
"
));
printf
(
_
(
" -v, --verbose verbose mode
\n
"
));
printf
(
_
(
" -v, --verbose verbose mode
\n
"
));
printf
(
_
(
" --help show this help, then exit
\n
"
));
printf
(
_
(
" --help show this help, then exit
\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