psql copy script

Поиск
Список
Период
Сортировка
От
Тема psql copy script
Дата
Msg-id E502FDA6FE0C5A4BB4EFA4250A1E049001DBE049@sxmbx51.corproot.net
обсуждение исходный текст
Ответы Re: psql copy script  (Yantao Shi <y.shi@larc.nasa.gov>)
Список pgsql-admin

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 по дате отправления:

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