summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Lane2000-04-04 05:22:46 +0000
committerTom Lane2000-04-04 05:22:46 +0000
commitc84ba6638eda656efc6ffdf279bc66fbdcc36c9d (patch)
treea38b83f8b6d0f5669d6b02ee5ea89b5f543cf768 /doc
parentedd4131e6e65f876d21461ae092addc2d8e534f4 (diff)
Add a check to pg_dump to see whether backend is same version as pg_dump.
If not, abort by default. Abort can be prevented by using -i or --ignore-version switch.
Diffstat (limited to 'doc')
-rw-r--r--doc/src/sgml/ref/pg_dump.sgml20
1 files changed, 18 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml
index f659f2009f..14a986d6a4 100644
--- a/doc/src/sgml/ref/pg_dump.sgml
+++ b/doc/src/sgml/ref/pg_dump.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.15 2000/03/27 17:14:43 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.16 2000/04/04 05:22:45 tgl Exp $
Postgres documentation
-->
@@ -26,7 +26,7 @@ Postgres documentation
pg_dump [ <replaceable class="parameter">dbname</replaceable> ]
pg_dump [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceable class="parameter">port</replaceable> ]
[ -t <replaceable class="parameter">table</replaceable> ]
- [ -a ] [ -c ] [ -d ] [ -D ] [ -n ] [ -N ]
+ [ -a ] [ -c ] [ -d ] [ -D ] [ -i ] [ -n ] [ -N ]
[ -o ] [ -s ] [ -u ] [ -v ] [ -x ]
[ <replaceable class="parameter">dbname</replaceable> ]
</synopsis>
@@ -93,6 +93,22 @@ pg_dump [ -h <replaceable class="parameter">host</replaceable> ] [ -p <replaceab
</varlistentry>
<varlistentry>
+ <term>-i</term>
+ <listitem>
+ <para>
+ Ignore version mismatch between <application>pg_dump</application>
+ and the database server. Since <application>pg_dump</application>
+ knows a great deal about system catalogs, any given version of
+ <application>pg_dump</application> is only intended to work with
+ the corresponding release of the database server. Use this option
+ if you need to override the version check (and if
+ <application>pg_dump</application> then fails, don't
+ say you weren't warned).
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term>-n</term>
<listitem>
<para>