From: Yantao Shi <y.shi@larc.nasa.gov>
To: Aniko.Badzong@swisscom.com
Cc: pgsql-admin@postgresql.org
Subject: Re: psql copy script
Date: Wed, 25 Jan 2006 11:53:46 -0500
Message-ID: <43D7AD1A.9060101@larcb.ecs.nasa.gov> (raw)
In-Reply-To: <E502FDA6FE0C5A4BB4EFA4250A1E049001DBE049@sxmbx51.corproot.net>
References: <E502FDA6FE0C5A4BB4EFA4250A1E049001DBE049@sxmbx51.corproot.net>
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
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: y.shi@larc.nasa.gov, Aniko.Badzong@swisscom.com
Subject: Re: psql copy script
In-Reply-To: <43D7AD1A.9060101@larcb.ecs.nasa.gov>
References: <E502FDA6FE0C5A4BB4EFA4250A1E049001DBE049@sxmbx51.corproot.net> <43D7AD1A.9060101@larcb.ecs.nasa.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox