Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 165859F9F3C for ; Sun, 28 Oct 2007 15:45:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 06665-07 for ; Sun, 28 Oct 2007 15:45:23 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.200.82]) by postgresql.org (Postfix) with ESMTP id 962AE9F9F36 for ; Sun, 28 Oct 2007 15:45:26 -0300 (ADT) Received: from [192.168.0.9] (c-67-160-97-72.hsd1.wa.comcast.net[67.160.97.72]) by comcast.net (sccrmhc12) with ESMTP id <20071028184525012009o5m3e>; Sun, 28 Oct 2007 18:45:25 +0000 From: Adrian Klaver To: pgsql-general@postgresql.org Subject: Re: pg_restore Date: Sun, 28 Oct 2007 11:45:58 -0700 User-Agent: KMail/1.9.1 Cc: Bob Pawley References: <004401c81990$ef57e8c0$6401a8c0@owner> In-Reply-To: <004401c81990$ef57e8c0$6401a8c0@owner> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710281145.58716.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/1496 X-Sequence-Number: 122788 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