Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit444af9e

Browse files
committed
Minor copy-editing.
1 parentf038e08 commit444af9e

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-
thedata 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'sdata type (typicallythese functions arefound 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)

[8]ページ先頭

©2009-2025 Movatter.jp