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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Documentation problem: The syntax for "\copy" is just wrong
Дата
Msg-id 25618.1405519674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Documentation problem: The syntax for "\copy" is just wrong  (David Tonhofer <bughunt@gluino.name>)
Список 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 по дате отправления:

Предыдущее
От: Rainer Tammer
Дата:
Сообщение: Re: Fwd: Re: Compile fails on AIX 6.1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #10972: string_agg function incorrectly concatenating varying delimiter