Re: psql copy script

Поиск
Список
Период
Сортировка
От Yantao Shi
Тема Re: psql copy script
Дата
Msg-id 43D7AD1A.9060101@larcb.ecs.nasa.gov
обсуждение исходный текст
Ответ на psql copy script  (<Aniko.Badzong@swisscom.com>)
Список pgsql-admin
Don't you have to use a "\" in front of copy like : \copy?

I use \copy command all the time, never have any problems with it.

Yantao Shi

Aniko.Badzong@swisscom.com wrote:

> Hi Alvaro
>
> Thanks for the help but it does not work.
>
> when I execute it than I get:
> [test/data] su - postgres -c "psql logdb -c 'copy test from
> \'/data/log/bla\''"
> Unmatched '.
>
> If I correct the error than I get the following:
>
> [test/data] su - postgres -c "psql logdb -c 'copy test from
> \'/data/log/bla'\'"
> psql: warning: extra command-line argument "copy test from
> \/data/log/bla\" ignored
> psql: FATAL:  role "-c" does not exist
>
> Any idea why?
> thx and regards
> Aniko
>
>


В списке pgsql-admin по дате отправления:

Предыдущее
От:
Дата:
Сообщение: psql copy script
Следующее
От: Arnau
Дата:
Сообщение: Re: Where is my bottleneck?