summaryrefslogtreecommitdiff
path: root/doc/src/sgml
diff options
context:
space:
mode:
authorTom Lane2016-05-20 18:59:48 +0000
committerTom Lane2016-05-20 18:59:48 +0000
commitb215c624ebf00225b955c1ebafdf6be1b96d63a8 (patch)
treeae8157c77bb1100681b35695397408115b37233e /doc/src/sgml
parent8e6d6a72257f7ae2e7b6b53b8857c2e3c0c52af7 (diff)
Improve documentation about pg_dump's --quote-all-identifiers switch.
Per bug #14152 from Alejandro Martínez. Back-patch to all supported branches. Discussion: <20160520165824.22598.31426@wrigleys.postgresql.org>
Diffstat (limited to 'doc/src/sgml')
-rw-r--r--doc/src/sgml/ref/pg_dump.sgml13
-rw-r--r--doc/src/sgml/ref/pg_dumpall.sgml13
2 files changed, 20 insertions, 6 deletions
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml
index 27d36fddd48..dbd36ab3fba 100644
--- a/doc/src/sgml/ref/pg_dump.sgml
+++ b/doc/src/sgml/ref/pg_dump.sgml
@@ -723,9 +723,16 @@ PostgreSQL documentation
<term><option>--quote-all-identifiers</></term>
<listitem>
<para>
- Force quoting of all identifiers. This may be useful when dumping a
- database for migration to a future version that may have introduced
- additional keywords.
+ Force quoting of all identifiers. This option is recommended when
+ dumping a database from a server whose <productname>PostgreSQL</>
+ major version is different from <application>pg_dump</>'s, or when
+ the output is intended to be loaded into a server of a different
+ major version. By default, <application>pg_dump</> quotes only
+ identifiers that are reserved words in its own major version.
+ This sometimes results in compatibility issues when dealing with
+ servers of other versions that may have slightly different sets
+ of reserved words. Using <option>--quote-all-identifiers</> prevents
+ such issues, at the price of a harder-to-read dump script.
</para>
</listitem>
</varlistentry>
diff --git a/doc/src/sgml/ref/pg_dumpall.sgml b/doc/src/sgml/ref/pg_dumpall.sgml
index 7c49c0364fb..ff23745d32d 100644
--- a/doc/src/sgml/ref/pg_dumpall.sgml
+++ b/doc/src/sgml/ref/pg_dumpall.sgml
@@ -367,9 +367,16 @@ PostgreSQL documentation
<term><option>--quote-all-identifiers</></term>
<listitem>
<para>
- Force quoting of all identifiers. This may be useful when dumping a
- database for migration to a future version that may have introduced
- additional keywords.
+ Force quoting of all identifiers. This option is recommended when
+ dumping a database from a server whose <productname>PostgreSQL</>
+ major version is different from <application>pg_dumpall</>'s, or when
+ the output is intended to be loaded into a server of a different
+ major version. By default, <application>pg_dumpall</> quotes only
+ identifiers that are reserved words in its own major version.
+ This sometimes results in compatibility issues when dealing with
+ servers of other versions that may have slightly different sets
+ of reserved words. Using <option>--quote-all-identifiers</> prevents
+ such issues, at the price of a harder-to-read dump script.
</para>
</listitem>
</varlistentry>