FW: copy command

From: <Aniko(dot)Badzong(at)swisscom(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: FW: copy command
Date: 2006-01-26 10:50:32
Message-ID: E502FDA6FE0C5A4BB4EFA4250A1E049001DBE04F@sxmbx51.corproot.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)hotmail(dot)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.
>
>

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stef 2006-01-26 11:02:18 Re: FW: copy command
Previous Message John Jensen 2006-01-26 08:57:08 Re: Where is my bottleneck?