]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: cross-link file-fdw and CSV config log sections
authorBruce Momjian <bruce@momjian.us>
Mon, 31 Aug 2020 20:59:58 +0000 (16:59 -0400)
committerBruce Momjian <bruce@momjian.us>
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 2227ae33c8ffa48d7c82f7db89f118933ca728b7..19abd7fe65d55c52e1c86cd0f11724813f99a842 100644 (file)
@@ -5870,6 +5870,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 7944f0d4a765668d7a8ab90a9ebf005a2194024c..87f2703f0a748577ecd0b19dc11d937deb121ae9 100644 (file)
   <para>
    One of the obvious uses for <literal>file_fdw</literal> 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</literal>.  First, install <literal>file_fdw</literal>
    as an extension:
   </para>