Update syntax shown for \copy to match new syntax for COPY.
authorRobert Haas
Thu, 6 Sep 2012 21:00:03 +0000 (17:00 -0400)
committerRobert Haas
Thu, 6 Sep 2012 21:00:03 +0000 (17:00 -0400)
Etsuro Fujita

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

index 0675a8e17b1ff6b45aad54ab3f3d855a00f745be..c41593c5e3669464d52048a4eace2ca9da1ca3c3 100644 (file)
@@ -830,18 +830,7 @@ testdb=>
         \copy { table [ ( column_list ) ] | ( query ) }
         { from | to }
         { filename | stdin | stdout | pstdin | pstdout }
-        [ with ]
-            [ binary ]
-            [ oids ]
-            [ delimiter [ as ] 'character' ]
-            [ null [ as ] 'string' ]
-            [ csv
-              [ header ]
-              [ quote [ as ] 'character' ]
-              [ escape [ as ] 'character' ]
-              [ force quote column_list | * ]
-              [ force not null column_list ] ]
-        
+        [ [ with ] ( option [, ...] ) ]
 
         
         
@@ -859,7 +848,11 @@ testdb=>
         
         The syntax of the command is similar to that of the
         SQL 
-        command.  Note that, because of this,
+        command, and
+        option
+        must indicate one of the options of the
+        SQL  command.
+        Note that, because of this,
         special parsing rules apply to the \copy
         command. In particular, the variable substitution rules and
         backslash escapes do not apply.