- Архив списков рассылки pgsql-admin

Поиск
Список
Период
Сортировка
От
Тема
Дата
Msg-id E502FDA6FE0C5A4BB4EFA4250A1E049001DBE04B@sxmbx51.corproot.net
обсуждение исходный текст
Ответы Re:  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re:  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin

Hi

I have tried it yesterday to escaoe the double qutoes and I get the error:

[test] su - postgres -c "echo \"copy test from '/data/log/bla';"\"  | psql logdb"
Unmatched ".

somehow does not want to work.


RE: [SQL] psql in the command line
from: Russell Simpkins [russellsimpkins@hotmail.com]
if in fact this works: echo "copy test from '/data/log/bla';" | psql logdb
then you probably want to write it like this:
su - postgres -c "echo \"copy test from '/data/log/bla';\"|>psql logdb"
so that you escape the double quotes.

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

Предыдущее
От: "Frank L. Parks"
Дата:
Сообщение: Re: Missing Databases
Следующее
От: "John Jensen"
Дата:
Сообщение: Re: Where is my bottleneck?