From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | Cédric Buschini <cbuschini(at)carax(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: COPY TO / COPY FROM |
Date: | 2005-09-23 13:47:03 |
Message-ID: | 20050923134703.GA73062@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
On Fri, Sep 23, 2005 at 01:48:33PM +0200, Cédric Buschini wrote:
> =====================
> psql -h192.168.XXX.XXX -dDATABASE -Upostgres << EOF > /home/postgres/FILE
> COPY TABLE TO stdout;
> EOF
>
> psql -h192.168.XXX.XXX -dDATABASE -Upostgres << EOF
> COPY carax_exec_bck FROM '/home/postgres/FILE';
> EOF
> =======================
>
> I got this error :
> ERROR: could not open file "/home/postgres/FILE" for reading: No such
> file or directory
Are the client and server on the same machine? The use of the -h
option suggests perhaps not. In the first command you're redirecting
psql's output to a file on the client machine, and in the second
command you're trying to read a file on the server machine.
--
Michael Fuhr
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2005-09-23 15:23:44 | Re: Encrypted Disks |
Previous Message | Spiegelberg, Greg | 2005-09-23 13:07:35 | Re: postgresql cluster on SAN |
From | Date | Subject | |
---|---|---|---|
Next Message | Hilary Forbes | 2005-09-23 14:09:52 | Where are user defined functions stored? |
Previous Message | Michael Fuhr | 2005-09-23 13:30:22 | Re: Issue with UPDATE statement on v8 |