X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5A2B6D8E84 for ; Fri, 23 Sep 2005 09:02:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 42689-07 for ; Fri, 23 Sep 2005 12:02:22 +0000 (GMT) Received: from 217-20-115-93.internetserviceteam.com (217-20-115-93.internetserviceteam.com [217.20.115.93]) by svr1.postgresql.org (Postfix) with ESMTP id 419DFD8DAD for ; Fri, 23 Sep 2005 09:02:23 -0300 (ADT) Received: from [192.168.1.48] (236.Red-83-44-164.dynamicIP.rima-tde.net [83.44.164.236]) by 217-20-115-93.internetserviceteam.com (Postfix) with ESMTP id A56DF39BBA; Fri, 23 Sep 2005 13:18:16 +0200 (CEST) Message-ID: <4333EED5.4090903@mediaroot.de> Date: Fri, 23 Sep 2005 13:02:29 +0100 From: Aldor User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: cbuschini@carax.com Cc: pgsql-admin@postgresql.org Subject: Re: COPY TO / COPY FROM References: <4333EB91.7020909@carax.com> In-Reply-To: <4333EB91.7020909@carax.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.396 required=5 tests=[AWL=-0.397, HOT_NASTY=0.586, UPPERCASE_25_50=0.207] X-Spam-Level: X-Archive-Number: 200509/268 X-Sequence-Number: 19005 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 >