Skip site navigation (1) Skip section navigation (2)

Re: COPY TO / COPY FROM

From: Aldor <an(at)mediaroot(dot)de>
To: cbuschini(at)carax(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: COPY TO / COPY FROM
Date: 2005-09-23 12:02:29
Message-ID: 4333EED5.4090903@mediaroot.de (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-sql
Why you don't make:

COPY carax_exec_bck TO '/home/postgres/FILE';

?

Then you could also use something like....

COPY carax_exec_bck TO '/home/postgres/FILE' WITH BINARY;

etc.

Cédric Buschini wrote:
> 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
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
> 
>               http://www.postgresql.org/docs/faq
> 

In response to

Responses

pgsql-admin by date

Next:From: Spiegelberg, GregDate: 2005-09-23 13:07:35
Subject: Re: postgresql cluster on SAN
Previous:From: Cédric BuschiniDate: 2005-09-23 11:48:33
Subject: COPY TO / COPY FROM

pgsql-sql by date

Next:From: Michael FuhrDate: 2005-09-23 13:30:22
Subject: Re: Issue with UPDATE statement on v8
Previous:From: Cédric BuschiniDate: 2005-09-23 11:48:33
Subject: COPY TO / COPY FROM

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group