Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D56C09FA559 for ; Sun, 28 Oct 2007 18:16:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 72348-05 for ; Sun, 28 Oct 2007 18:16:14 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from pd2mo1so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by postgresql.org (Postfix) with ESMTP id 013849FB84F for ; Sun, 28 Oct 2007 18:16:12 -0300 (ADT) Received: from pd2mr4so.prod.shaw.ca (pd2mr4so-qfe3.prod.shaw.ca [10.0.141.107]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JQN009MR4CU7MD0@l-daemon> for pgsql-general@postgresql.org; Sun, 28 Oct 2007 15:14:54 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca ([10.0.121.149]) by pd2mr4so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JQN00I7B4CTIP00@pd2mr4so.prod.shaw.ca> for pgsql-general@postgresql.org; Sun, 28 Oct 2007 15:14:54 -0600 (MDT) Received: from owner ([24.70.116.65]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0JQN0026L4CJ9L70@l-daemon> for pgsql-general@postgresql.org; Sun, 28 Oct 2007 15:14:53 -0600 (MDT) Date: Sun, 28 Oct 2007 14:13:31 -0700 From: Bob Pawley Subject: Re: pg_restore To: Adrian Klaver , pgsql-general@postgresql.org Message-id: <005b01c819a7$65a7aea0$6401a8c0@owner> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Mailer: Microsoft Outlook Express 6.00.2900.3138 Content-type: text/plain; format=flowed; charset=iso-8859-1; reply-type=original Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <004401c81990$ef57e8c0$6401a8c0@owner> <200710281145.58716.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/1499 X-Sequence-Number: 122791 Hi Adrian With pg_restore psql -h localhost -d PDW -U postgres aurel.sql the error message is - pg_restore: could not open input file: No such file or directory exists. I get this message with aurel.sql - or aurel - or the path to aurel (......8,2\bin) or when aurel is not even mentioned. This is becoming quite frustrating. Bob ----- Original Message ----- From: "Adrian Klaver" To: Cc: "Bob Pawley" Sent: Sunday, October 28, 2007 11:45 AM Subject: Re: [GENERAL] pg_restore > On Sunday 28 October 2007 11:32 am, Bob Pawley wrote: >> Please help. >> >> I am attempting to restore a database into PostgreSQL version 8.2 running >> on Win XP Professional. >> >> From the 'bin' folder, I am using the command line- >> pg_restore psql -h localhost -d PDW -U postgres -f aurel.sql > > Try pg_restore psql -h localhost -d PDW -U postgres aurel.sql > No -f switch > >> >> I get an error - >> >> pg_restore: cannot specify both -d and -f output. >> >> If the error message is correct how does pg_restore know what to put >> where? > > The -d switch tells pg_restore to the named database. The -f switch tells > it > to restore to named file. It won't do both. > >> >> I used the same command to successfully install the same pg_dump file >> into >> PostgreSQL 8.1 running on the same computer. > > Maybe 8.1 ignored the error. > >> >> Any thoughts would be much appreciated. >> > > > -- > Adrian Klaver > aklaver@comcast.net