Re: Documentation problem: The syntax for "\copy" is just wrong

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Tonhofer <bughunt(at)gluino(dot)name>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Documentation problem: The syntax for "\copy" is just wrong
Date: 2014-07-16 14:07:54
Message-ID: 25618.1405519674@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

David Tonhofer <bughunt(at)gluino(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-07-16 14:20:02 Re: BUG #10972: string_agg function incorrectly concatenating varying delimiter
Previous Message Rainer Tammer 2014-07-16 13:56:18 Re: Fwd: Re: Compile fails on AIX 6.1