Re: Missing File weather.txt - Mailing list pgsql-docs

From Tom Lane
Subject Re: Missing File weather.txt
Date
Msg-id 10240.1751736559@sss.pgh.pa.us
Whole thread Raw
In response to Re: Missing File weather.txt  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-docs
Fujii Masao <masao.fujii@oss.nttdata.com> writes:
> On 2020/01/28 19:18, Daniel Gustafsson wrote:
>> This is only mentioned as an example of another input method, with a link to
>> the COPY page for more information.  That being said, it's a good thing for a
>> tutorial to be self-contained, and going from a basic tutorial to the COPY
>> reference page is a fairly large step.  I propose that we add a small example
>> on what weather.txt could look like as per the attached diff.

> Sorry for reviving this old thread, but I wanted to follow up since
> the same issue was reported again in [1], and the proposed patch
> basically looks good to me.

+1

> In the tutorial, three rows are inserted using INSERT, so shouldn't
> the sample input for COPY include all three, like this?

Agreed, the example file should match what the tutorial expects to be
in the table.  I'd include text along the lines of "The data inserted
above could also be inserted from a file containing:".

            regards, tom lane



pgsql-docs by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Missing File weather.txt
Next
From: PG Doc comments form
Date:
Subject: Unexpected behaviour: it was documented to return the same value