pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cédric Buschini <cbuschini@carax.com>
To: pgsql-admin@postgresql.org
Subject: COPY TO / COPY FROM
Date: Fri, 23 Sep 2005 13:48:33 +0200
Message-ID: <4333EB91.7020909@carax.com> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <4333EB91.7020909@carax.com>
Permalink:  ../4333EB91.7020909@carax.com/
Also on:    postgresql.org/message-id/4333EB91.7020909@carax.com

 · 

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: cbuschini@carax.com, pgsql-admin@postgresql.org
  Subject: Re: COPY TO / COPY FROM
  In-Reply-To: <4333EB91.7020909@carax.com>

* 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