doc: cross-link file-fdw and CSV config log sections
authorBruce Momjian <[email protected]>
Mon, 31 Aug 2020 20:59:58 +0000 (16:59 -0400)
committerBruce Momjian <[email protected]>
Mon, 31 Aug 2020 20:59:58 +0000 (16:59 -0400)
There is an file-fdw example that reads the server config file, so cross
link them.

Reported-by: Oleg Samoilov
Discussion: https://postgr.es/m/159800192078.2886.10431506404995508950@wrigleys.postgresql.org

Backpatch-through: 9.5

doc/src/sgml/config.sgml
doc/src/sgml/file-fdw.sgml

index ad4f13277fc0378ca1a29c71be1903b2addadce4..09f08886c6350742ae1dfa3aedf6f61e0157e3e0 100644 (file)
@@ -4899,6 +4899,8 @@ CREATE TABLE postgres_log
 <programlisting>
 COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
 </programlisting>
+        It is also possible to access the file as a foreign table, using
+        the supplied <xref linkend="file-fdw"> module.
        </para>
 
        <para>
index 7dd56764296405ad4cdd4c44c83fe1871f209b72..219d42431d6f230a48b3d9aa43004aef08a01365 100644 (file)
  <title id="csvlog-fdw">Create a Foreign Table for PostgreSQL CSV Logs</title>
 
   <para>
-   One of the obvious uses for the <literal>file_fdw</> is to make
+   One of the obvious uses for <literal>file_fdw</> is to make
    the PostgreSQL activity log available as a table for querying.  To
-   do this, first you must be logging to a CSV file, which here we
+   do this, first you must be <link
+   linkend="runtime-config-logging-csvlog">logging to a CSV file,</link>
+   which here we
    will call <literal>pglog.csv</>.  First, install <literal>file_fdw</>
    as an extension:
   </para>