]> granicus.if.org Git - postgresql/commitdiff
Add link from COPY ref page to psql \copy.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Aug 2012 17:51:22 +0000 (13:51 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Aug 2012 17:51:40 +0000 (13:51 -0400)
Jeff Janes

doc/src/sgml/ref/copy.sgml
doc/src/sgml/ref/psql-ref.sgml

index 4e4e834e062f2b65328753ad1af03bed8e3a1bc8..e5f45f4a8af2e335a98c4de34b85cd43e829809a 100644 (file)
@@ -353,7 +353,7 @@ COPY <replaceable class="parameter">count</replaceable>
    <para>
     Do not confuse <command>COPY</command> with the
     <application>psql</application> instruction
-    <command>\copy</command>. <command>\copy</command> invokes
+    <command><link linkend="APP-PSQL-meta-commands-copy">\copy</link></command>. <command>\copy</command> invokes
     <command>COPY FROM STDIN</command> or <command>COPY TO
     STDOUT</command>, and then fetches/stores the data in a file
     accessible to the <application>psql</application> client. Thus,
index 1beac9a1b7e8645115a3ca4de6f01156e5705f18..97317c3630f02a8331fd9634b3a593bca0558927 100644 (file)
@@ -826,7 +826,7 @@ testdb=&gt;
         </listitem>
       </varlistentry>
 
-      <varlistentry>
+      <varlistentry id="APP-PSQL-meta-commands-copy">
         <term><literal>\copy { <replaceable class="parameter">table</replaceable> [ ( <replaceable class="parameter">column_list</replaceable> ) ] | ( <replaceable class="parameter">query</replaceable> ) }
         { <literal>from</literal> | <literal>to</literal> }
         { <replaceable class="parameter">filename</replaceable> | stdin | stdout | pstdin | pstdout }