Re: Documentation problem: The syntax for "\copy" is just wrong - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Documentation problem: The syntax for "\copy" is just wrong
Date
Msg-id 25618.1405519674@sss.pgh.pa.us
Whole thread Raw
In response to Documentation problem: The syntax for "\copy" is just wrong  (David Tonhofer <bughunt@gluino.name>)
List pgsql-bugs
David Tonhofer <bughunt@gluino.name> writes:
> the syntax for the \copy command is given as follows:

>    \copy { table [ ( column_list ) ] | ( query ) } { from | to } {
> 'filename' | program 'command' | stdin | stdout | pstdin | pstdout } [ [
> with ] ( option [, ...] ) ]

Yeah ...

> According to the description as given, the following should work.
>    \copy table_to_fill from 'foofile.csv' with format csv, header true,
> delimiter ',';

Not sure how you get from the first to the second.  The syntax clearly
shows parens around the option list as required.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Rainer Tammer
Date:
Subject: Re: Fwd: Re: Compile fails on AIX 6.1
Next
From: Tom Lane
Date:
Subject: Re: BUG #10972: string_agg function incorrectly concatenating varying delimiter