doc: Add anchors for COPY format descriptions
authorDaniel Gustafsson <[email protected]>
Mon, 14 Oct 2024 08:15:33 +0000 (10:15 +0200)
committerDaniel Gustafsson <[email protected]>
Mon, 14 Oct 2024 08:15:33 +0000 (10:15 +0200)
When answering support questions online it's helpful to be able to
refer to the specific format by using an anchored link.

Author: Dagfinn Ilmari MannsÃ¥ker <[email protected]>
Discussion: https://postgr.es/m/[email protected]

doc/src/sgml/ref/copy.sgml

index f493ddb371d702a80487d793f6acad6aa57bff99..8394402f0961d6cde3042e3f8bfb34780cc729f5 100644 (file)
@@ -221,6 +221,7 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
       <literal>csv</literal> (Comma Separated Values),
       or <literal>binary</literal>.
       The default is <literal>text</literal>.
+      See <xref linkend="sql-copy-file-formats"/> below for details.
      </para>
     </listitem>
    </varlistentry>
@@ -650,10 +651,10 @@ COPY <replaceable class="parameter">count</replaceable>
 
  </refsect1>
 
- <refsect1>
+ <refsect1 id="sql-copy-file-formats" xreflabel="File Formats">
   <title>File Formats</title>
 
-  <refsect2>
+  <refsect2 id="sql-copy-text-format" xreflabel="Text Format">
    <title>Text Format</title>
 
    <para>
@@ -798,7 +799,7 @@ COPY <replaceable class="parameter">count</replaceable>
    </para>
   </refsect2>
 
-  <refsect2>
+  <refsect2 id="sql-copy-csv-format" xreflabel="CSV Format">
    <title>CSV Format</title>
 
    <para>
@@ -892,7 +893,7 @@ COPY <replaceable class="parameter">count</replaceable>
 
   </refsect2>
 
-  <refsect2>
+  <refsect2 id="sql-copy-binary-format" xreflabel="Binary Format">
    <title>Binary Format</title>
 
    <para>