Skip to content
Snippets Groups Projects
Commit b215c624 authored by Tom Lane's avatar Tom Lane
Browse files

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>
parent 8e6d6a72
No related branches found
Tags
No related merge requests found
...@@ -723,9 +723,16 @@ PostgreSQL documentation ...@@ -723,9 +723,16 @@ PostgreSQL documentation
<term><option>--quote-all-identifiers</></term> <term><option>--quote-all-identifiers</></term>
<listitem> <listitem>
<para> <para>
Force quoting of all identifiers. This may be useful when dumping a Force quoting of all identifiers. This option is recommended when
database for migration to a future version that may have introduced dumping a database from a server whose <productname>PostgreSQL</>
additional keywords. 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> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -367,9 +367,16 @@ PostgreSQL documentation ...@@ -367,9 +367,16 @@ PostgreSQL documentation
<term><option>--quote-all-identifiers</></term> <term><option>--quote-all-identifiers</></term>
<listitem> <listitem>
<para> <para>
Force quoting of all identifiers. This may be useful when dumping a Force quoting of all identifiers. This option is recommended when
database for migration to a future version that may have introduced dumping a database from a server whose <productname>PostgreSQL</>
additional keywords. 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> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment