Improve documentation about pg_dump's --quote-all-identifiers switch.
authorTom Lane
Fri, 20 May 2016 18:59:48 +0000 (14:59 -0400)
committerTom Lane
Fri, 20 May 2016 18:59:48 +0000 (14:59 -0400)
Per bug #14152 from Alejandro Martínez.  Back-patch to all supported
branches.

Discussion: <20160520165824[email protected]>

doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_dumpall.sgml

index 1090daaa31bac943e12b30c833126140bd90251e..7763f58b0b9d75c0d9fc6873ee7adb04d70b1b5f 100644 (file)
@@ -817,9 +817,16 @@ PostgreSQL documentation
       
       
        
-        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 PostgreSQL
+        major version is different from pg_dump's, or when
+        the output is intended to be loaded into a server of a different
+        major version.  By default, 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 
+        such issues, at the price of a harder-to-read dump script.
        
       
      
index 6c34c257b3c35ee14357d122038f134c41ab83ad..97168a08159d5c9ef68b0b15de9aa14c1d755abd 100644 (file)
@@ -368,9 +368,16 @@ PostgreSQL documentation
       
       
        
-        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 PostgreSQL
+        major version is different from pg_dumpall's, or when
+        the output is intended to be loaded into a server of a different
+        major version.  By default, 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 
+        such issues, at the price of a harder-to-read dump script.