From: | Yantao Shi <y(dot)shi(at)larc(dot)nasa(dot)gov> |
---|---|
To: | <Aniko(dot)Badzong(at)swisscom(dot)com> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: psql copy script |
Date: | 2006-01-25 16:53:46 |
Message-ID: | 43D7AD1A.9060101@larcb.ecs.nasa.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(dot)Badzong(at)swisscom(dot)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
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Arnau | 2006-01-25 16:57:07 | Re: Where is my bottleneck? |
Previous Message | Aniko.Badzong | 2006-01-25 16:32:25 | psql copy script |