Document the fact that COPY always uses the client encoding.
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 16 Jan 2008 22:07:04 +0000 (22:07 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 16 Jan 2008 22:07:04 +0000 (22:07 +0000)
doc/src/sgml/ref/copy.sgml

index cd97500f1ea20cc5373efe637bd9457150a0f410..7c137dc50634798c44805647f4c576a71de7bc4d 100644 (file)
@@ -353,6 +353,13 @@ COPY <replaceable class="parameter">count</replaceable>
     using <command>COPY TO</>.
    </para>
 
+   <para>
+    Input data is interpreted according to the current client encoding,
+    and output data is encoded in the the current client encoding, even
+    if the data does not pass through the client but is read from or
+    written to a file.
+   </para>
+
    <para>
     <command>COPY</command> stops operation at the first error. This
     should not lead to problems in the event of a <command>COPY
@@ -363,6 +370,7 @@ COPY <replaceable class="parameter">count</replaceable>
     happened well into a large copy operation. You might wish to invoke
     <command>VACUUM</command> to recover the wasted space.
    </para>
+
  </refsect1>
  
  <refsect1>