mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
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
This commit is contained in:
parent
a8591cbb40
commit
0b503ecc8c
@ -4899,6 +4899,8 @@ CREATE TABLE postgres_log
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
It is also possible to access the file as a foreign table, using
|
||||||
|
the supplied <xref linkend="file-fdw"> module.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -187,9 +187,11 @@
|
|||||||
<title id="csvlog-fdw">Create a Foreign Table for PostgreSQL CSV Logs</title>
|
<title id="csvlog-fdw">Create a Foreign Table for PostgreSQL CSV Logs</title>
|
||||||
|
|
||||||
<para>
|
<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
|
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</>
|
will call <literal>pglog.csv</>. First, install <literal>file_fdw</>
|
||||||
as an extension:
|
as an extension:
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user