diff options
author | Bruce Momjian <bruce@momjian.us> | 2020-08-31 16:59:59 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2020-08-31 16:59:59 -0400 |
commit | de2d1920ddf54ec8dbcc87821ade5346f0cf8926 (patch) | |
tree | a382e19cd5c793b413579cd766c5d46113bd3d89 /doc/src | |
parent | b1ae70b3b4fd54220a0901eaf3dd4c5ca0827108 (diff) | |
download | postgresql-de2d1920ddf54ec8dbcc87821ade5346f0cf8926.tar.gz postgresql-de2d1920ddf54ec8dbcc87821ade5346f0cf8926.zip |
doc: cross-link file-fdw and CSV config log sections
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
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/config.sgml | 2 | ||||
-rw-r--r-- | doc/src/sgml/file-fdw.sgml | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 218aa5ae04e..a068f33b610 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -7075,6 +7075,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> diff --git a/doc/src/sgml/file-fdw.sgml b/doc/src/sgml/file-fdw.sgml index d985ef0a069..599952ed3d7 100644 --- a/doc/src/sgml/file-fdw.sgml +++ b/doc/src/sgml/file-fdw.sgml @@ -216,7 +216,9 @@ <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> |