Skip to content

Commit c7d7c15

Browse files
committed
Document the fact that COPY always uses the client encoding.
1 parent 97e3a6e commit c7d7c15

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/src/sgml/ref/copy.sgml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.80 2007/04/18 02:28:22 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.81 2008/01/16 22:07:04 adunstan Exp $
33
PostgreSQL documentation
44
-->
55

@@ -353,6 +353,13 @@ COPY <replaceable class="parameter">count</replaceable>
353353
using <command>COPY TO</>.
354354
</para>
355355

356+
<para>
357+
Input data is interpreted according to the current client encoding,
358+
and output data is encoded in the the current client encoding, even
359+
if the data does not pass through the client but is read from or
360+
written to a file.
361+
</para>
362+
356363
<para>
357364
<command>COPY</command> stops operation at the first error. This
358365
should not lead to problems in the event of a <command>COPY
@@ -363,6 +370,7 @@ COPY <replaceable class="parameter">count</replaceable>
363370
happened well into a large copy operation. You might wish to invoke
364371
<command>VACUUM</command> to recover the wasted space.
365372
</para>
373+
366374
</refsect1>
367375

368376
<refsect1>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy