COPY TO / COPY FROM - Mailing list pgsql-admin

From Cédric Buschini
Subject COPY TO / COPY FROM
Date
Msg-id 4333EB91.7020909@carax.com
Whole thread Raw
Responses Re: COPY TO / COPY FROM
Re: COPY TO / COPY FROM
List pgsql-admin
Hi

Here I am again with my 'stupd' question

here is a script :

=====================
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

????

thx

cedric

pgsql-admin by date:

Previous
From: Aldor
Date:
Subject: Re: Replication
Next
From: Aldor
Date:
Subject: Re: COPY TO / COPY FROM