11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.35 2002/08/02 18:15:04 tgl Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/ref/copy.sgml,v 1.36 2002/08/04 05:09:36 momjian Exp $
33PostgreSQL documentation
44-->
55
@@ -57,7 +57,7 @@ COPY <replaceable class="parameter">table</replaceable> [ ( <replaceable class="
5757 </varlistentry>
5858
5959 <varlistentry>
60- <term><replaceable class="parameter">column list </replaceable></term>
60+ <term><replaceable class="parameter">column</replaceable></term>
6161 <listitem>
6262 <para>
6363An optional list of columns to be copied. If no column list is
@@ -99,7 +99,8 @@ COPY <replaceable class="parameter">table</replaceable> [ ( <replaceable class="
9999 <para>
100100Changes the behavior of field formatting, forcing all data to be
101101stored or read in binary format rather than as text. You can not
102- specify DELIMITER or NULL in binary mode.
102+ specify <option>DELIMITER</option>, <option>NULL</option>, or
103+ a column list in binary mode.
103104 </para>
104105 </listitem>
105106 </varlistentry>
@@ -117,7 +118,7 @@ COPY <replaceable class="parameter">table</replaceable> [ ( <replaceable class="
117118 <term><replaceable class="parameter">delimiter</replaceable></term>
118119 <listitem>
119120 <para>
120- The character that separates fields within each row (line) of the file.
121+ Thesingle character that separates fields within each row (line) of the file.
121122 </para>
122123 </listitem>
123124 </varlistentry>
@@ -189,9 +190,7 @@ ERROR: <replaceable>reason</replaceable>
189190 <para>
190191 <command>COPY</command> moves data between
191192 <productname>PostgreSQL</productname> tables and standard file-system
192- files.
193-
194- <command>COPY TO</command> copies the entire contents of a table
193+ files. <command>COPY TO</command> copies the contents of a table
195194 <emphasis>to</> a file, while <command>COPY FROM</command> copies
196195 data <emphasis>from</> a file to a table (appending the data to
197196 whatever is in the table already).
@@ -200,7 +199,7 @@ ERROR: <replaceable>reason</replaceable>
200199 <para>
201200 If a list of columns is specified, <command>COPY</command> will
202201 only copy the data in the specified columns to or from the file.
203- If there are any columns in the table that are not in thefile ,
202+ If there are any columns in the table that are not in thecolumn list ,
204203 <command>COPY FROM</command> will insert the default values for
205204 those columns.
206205 </para>
@@ -249,8 +248,8 @@ ERROR: <replaceable>reason</replaceable>
249248 <para>
250249 By default, a text copy uses a tab ("\t") character as a delimiter
251250 between fields. The field delimiter may be changed to any other
252- single character with the keyword DELIMITER. Characters in data
253- fields that happen to match the delimiter character will be
251+ single character with the keyword<option> DELIMITER</option> . Characters
252+ in data fields that happen to match the delimiter character will be
254253 backslash quoted.
255254 </para>
256255
@@ -635,15 +634,14 @@ OIDs to be shown as NULL if that ever proves desirable.
635634 Usage
636635 </title>
637636 <para>
638- The following example copies a table to standard output,
639- using a vertical bar (|) as the field
640- delimiter:
637+ The following example copies a table to standard output,
638+ using a vertical bar (|) as the field delimiter:
641639 </para>
642640 <programlisting>
643641COPY country TO <filename>stdout</filename> WITH DELIMITER '|';
644642 </programlisting>
645643 <para>
646- To copy data from a Unix file intoa table country:
644+ To copy data from a Unix file intothe <literal> country</> table :
647645 </para>
648646 <programlisting>
649647COPY country FROM '/usr1/proj/bray/sql/country_data';