Skip to content

Commit 444af9e

Browse files
committed
Minor copy-editing.
1 parent f038e08 commit 444af9e

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

doc/src/sgml/ref/copy.sgml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.51 2003/09/22 00:16:57 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.52 2003/09/30 01:56:11 tgl Exp $
33
PostgreSQL documentation
44
-->
55

@@ -77,7 +77,7 @@ COPY <replaceable class="parameter">tablename</replaceable> [ ( <replaceable cla
7777
<term><replaceable class="parameter">tablename</replaceable></term>
7878
<listitem>
7979
<para>
80-
The name (possibly schema-qualified) of an existing table.
80+
The name (optionally schema-qualified) of an existing table.
8181
</para>
8282
</listitem>
8383
</varlistentry>
@@ -355,10 +355,16 @@ COPY <replaceable class="parameter">tablename</replaceable> [ ( <replaceable cla
355355

356356
<para>
357357
<command>COPY TO</command> will terminate each row with a Unix-style
358-
newline (<quote><literal>\n</></>), or carriage return/newline
359-
("\r\n") for servers running MS Windows.
358+
newline (<quote><literal>\n</></>). Servers running on MS Windows instead
359+
output carriage return/newline (<quote><literal>\r\n</></>), but only for
360+
<command>COPY</> to a server file; for consistency across platforms,
361+
<command>COPY TO STDOUT</> always sends <quote><literal>\n</></>
362+
regardless of server platform.
360363
<command>COPY FROM</command> can handle lines ending with newlines,
361-
carriage returns, or carriage return/newlines.
364+
carriage returns, or carriage return/newlines. To reduce the risk of
365+
error due to un-backslashed newlines or carriage returns that were
366+
meant as data, <command>COPY FROM</command> will complain if the line
367+
endings in the input are not all alike.
362368
</para>
363369
</refsect2>
364370

@@ -476,9 +482,9 @@ to be specified.
476482
To determine the appropriate binary format for the actual tuple data you
477483
should consult the <productname>PostgreSQL</productname> source, in
478484
particular the <function>*send</> and <function>*recv</> functions for
479-
the data type (typically found in the <filename>src/backend/utils/adt</filename>
480-
directory). The <application>contrib/binarycopy</application> module
481-
can also be used to create an appropriate format file.
485+
each column's data type (typically these functions are found in the
486+
<filename>src/backend/utils/adt/</filename> directory of the source
487+
distribution).
482488
</para>
483489

484490
<para>

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