8000 Improve documentation about pg_dump's --quote-all-identifiers switch. · eldilibra/postgres@608e466 · GitHub
[go: up one dir, main page]

Skip to content

Commit 608e466

Browse files
committed
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>
1 parent 79e4dea commit 608e466

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,9 +688,16 @@ PostgreSQL documentation
688688
<term><option>--quote-all-identifiers</></term>
689689
<listitem>
690690
<para>
691-
Force quoting of all identifiers. This may be useful when dumping a
692-
database for migration to a future version that may have introduced
693-
additional keywords.
691+
Force quoting of all identifiers. This option is recommended when
692+
dumping a database from a server whose <productname>PostgreSQL</>
693+
major version is different from <application>pg_dump</>'s, or when
694+
the output is intended to be loaded into a server of a different
695+
major version. By default, <application>pg_dump</> quotes only
696+
identifiers that are reserved words in its own major version.
697+
This sometimes results in compatibility issues when dealing with
698+
servers of other versions that may have slightly different sets
699+
of reserved words. Using <option>--quote-all-identifiers</> prevents
700+
such issues, at the price of a harder-to-read dump script.
694701
</para>
695702
</listitem>
696703
</varlistentry>

doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,16 @@ PostgreSQL documentation
367367
<term><option>--quote-all-identifiers</></term>
368368
<listitem>
369369
<para>
370-
Force quoting of all identifiers. This may be useful when dumping a
371-
database for migration to a future version that may have introduced
372-
additional keywords.
370+
Force quoting of all identifiers. This option is recommended when
371+
dumping a database from a server whose <productname>PostgreSQL</>
372+
major version is different from <application>pg_dumpall</>'s, or when
373+
the output is intended to be loaded into a server of a different
374+
major version. By default, <application>pg_dumpall</> quotes only
375+
identifiers that are reserved words in its own major version.
376+
This sometimes results in compatibility issues when dealing with
377+
servers of other versions that may have slightly different sets
378+
of reserved words. Using <option>--quote-all-identifiers</> prevents
379+
such issues, at the price of a harder-to-read dump script.
373380
</para>
374381
</listitem>
375382
</varlistentry>

0 commit comments

Comments
 (0)
0