pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aldor <an@mediaroot.de>
To: cbuschini@carax.com
Cc: pgsql-admin@postgresql.org
Subject: Re: COPY TO / COPY FROM
Date: Fri, 23 Sep 2005 13:02:29 +0100
Message-ID: <4333EED5.4090903@mediaroot.de> (raw)
In-Reply-To: <4333EB91.7020909@carax.com>
References: <4333EB91.7020909@carax.com>

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
> 



view thread (4+ messages)  latest in thread

Message-ID: <4333EED5.4090903@mediaroot.de>
Permalink:  ../4333EED5.4090903@mediaroot.de/
Also on:    postgresql.org/message-id/4333EED5.4090903@mediaroot.de

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: an@mediaroot.de, cbuschini@carax.com, pgsql-admin@postgresql.org
  Subject: Re: COPY TO / COPY FROM
  In-Reply-To: <4333EED5.4090903@mediaroot.de>

* 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