Re: Create a Foreign Table for PostgreSQL CSV Logs - Mailing list pgsql-docs

From Bruce Momjian
Subject Re: Create a Foreign Table for PostgreSQL CSV Logs
Date
Msg-id 20200821215807.GE13363@momjian.us
Whole thread Raw
In response to Create a Foreign Table for PostgreSQL CSV Logs  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: Create a Foreign Table for PostgreSQL CSV Logs  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-docs
On Fri, Aug 21, 2020 at 09:25:20AM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/12/runtime-config-logging.html
> Description:
> 
> There is some imperfection  in PostgreSQL doc. There are two section in
> documentation how to import PostgreSQL log into sql space and both not
> complete. One of them is:
> https://www.postgresql.org/docs/current/file-fdw.html
> Example F.1. Create a Foreign Table for PostgreSQL CSV Logs
> Here is described how to config file-fdw to get access to the PostgreSQL
> logs, but there is not description or a link how to config PostgreSQL log
> for this.
> 
> Other section is:
> https://www.postgresql.org/docs/12/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-CSVLOG
> 19.8.4. Using CSV-Format Log Output
> Here is described how to configure PostgreSQL log to import it into
> previously created ordinary table by COPY command. May be this configuration
> is compatible with "Example F.1. Create a Foreign Table for PostgreSQL CSV
> Logs", but this method is not mentioned.
> 
> My idea to improve documentation by adding cross link: to section «Example
> F.1. Create a Foreign Table for PostgreSQL CSV Logs» add link to «19.8.4.
> Using CSV-Format Log Output» as example of log configuration and to section
> «19.8.4. Using CSV-Format Log Output» add link to «Example F.1. Create a
> Foreign Table for PostgreSQL CSV Logs» as one more example how PostgreSQL
> logs can be imported inside PostgreSQL.

Good idea.  People have been confused about this before.  Attached is a
patch.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee


Attachment

pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Request for further clarification on synchronous_commit
Next
From: Bruce Momjian
Date:
Subject: Re: "stable storage"