Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8033A9FB976 for ; Sun, 28 Oct 2007 19:15:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 12447-01 for ; Sun, 28 Oct 2007 19:15:01 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from alnrmhc12.comcast.net (alnrmhc12.comcast.net [204.127.225.92]) by postgresql.org (Postfix) with ESMTP id 2FD479FA0DB for ; Sun, 28 Oct 2007 19:15:05 -0300 (ADT) Received: from [192.168.0.9] (c-67-160-97-72.hsd1.wa.comcast.net[67.160.97.72]) by comcast.net (alnrmhc12) with ESMTP id <20071028221503b1200b7m1ve>; Sun, 28 Oct 2007 22:15:03 +0000 From: Adrian Klaver To: pgsql-general@postgresql.org Subject: Re: pg_restore Date: Sun, 28 Oct 2007 15:15:39 -0700 User-Agent: KMail/1.9.1 Cc: Bob Pawley , Tom Lane References: <004401c81990$ef57e8c0$6401a8c0@owner> <7589.1193606901@sss.pgh.pa.us> <000c01c819ae$2a89ffb0$6401a8c0@owner> In-Reply-To: <000c01c819ae$2a89ffb0$6401a8c0@owner> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710281515.39475.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/1504 X-Sequence-Number: 122796 On Sunday 28 October 2007 3:01 pm, Bob Pawley wrote: > The latest in the saga - > > By using - pg_restore -h localhost -d PDW -U postgres aurel.sql > > I get the message - pg_restore: input file does not appear to be a valid > archive. > > I get this message when I used the aurel.sql file which I previously loaded > successfully in 8.1 and also when I use an aurel.sql file which I just > successfully dumped a few minutes ago from the 8.1 on my other computer. > > Could pg_restore in my 8.2 be corrupted?? > > Bob What does your dump command look like? My guess is your are doing a plain text dump and pg_restore only works with the custom formats. If you want to use the plain text version than you need to use psql. This maybe how you got to the point of having both pg_restore and psql on the same line. -- Adrian Klaver aklaver@comcast.net