doc: Fix description of \copy for psql
authorMichael Paquier
Sat, 18 Jul 2020 01:42:50 +0000 (10:42 +0900)
committerMichael Paquier
Sat, 18 Jul 2020 01:42:50 +0000 (10:42 +0900)
The WHERE clause introduced by 31f3817 was not described.  While on it,
split the grammar of \copy FROM and TO into two distinct parts for
clarity as they support different set of options.

Author: Vignesh C
Discussion: https://postgr.es/m/CALDaNm3zWr=OmxeNqOqfT=uZTSdam_j-gkX94CL8eTNfgUtf6A@mail.gmail.com
Backpatch-through: 12

doc/src/sgml/ref/psql-ref.sgml

index cfd0918751fd2740dc278cf0ea02bf8826b5a5de..b0335b9592bfbab1e958f61c1ccc22480142b2bb 100644 (file)
@@ -983,9 +983,15 @@ testdb=>
       
 
       
+        \copy { table [ ( column_list ) ] }
+        from
+        { 'filename' | program 'command' | stdin | pstdin }
+        [ [ with ] ( option [, ...] ) ]
+        [ where condition ]
+
         \copy { table [ ( column_list ) ] | ( query ) }
-        { from | to }
-        { 'filename' | program 'command' | stdin | stdout | pstdin | pstdout }
+        to
+        { 'filename' | program 'command' | stdout | pstdout }
         [ [ with ] ( option [, ...] ) ]