Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 269039FA0B7 for ; Sun, 28 Oct 2007 19:41:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 68075-07 for ; Sun, 28 Oct 2007 19:41:32 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from pd4mo3so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by postgresql.org (Postfix) with ESMTP id BB0139F9F4B for ; Sun, 28 Oct 2007 19:41:35 -0300 (ADT) Received: from pd4mr2so.prod.shaw.ca (pd4mr2so-qfe3.prod.shaw.ca [10.0.141.213]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JQN00G188DACWA0@l-daemon> for pgsql-general@postgresql.org; Sun, 28 Oct 2007 16:41:34 -0600 (MDT) Received: from pn2ml6so.prod.shaw.ca ([10.0.121.150]) by pd4mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JQN0072V8DA3Y60@pd4mr2so.prod.shaw.ca> for pgsql-general@postgresql.org; Sun, 28 Oct 2007 16:41:34 -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 <0JQN002IY8D05U60@l-daemon> for pgsql-general@postgresql.org; Sun, 28 Oct 2007 16:41:33 -0600 (MDT) Date: Sun, 28 Oct 2007 15:40:13 -0700 From: Bob Pawley Subject: Re: pg_restore To: Adrian Klaver , pgsql-general@postgresql.org Cc: Tom Lane Message-id: <001901c819b3$822878f0$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> <7589.1193606901@sss.pgh.pa.us> <000c01c819ae$2a89ffb0$6401a8c0@owner> <200710281515.39475.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/1506 X-Sequence-Number: 122798 This is the dump command pg_dump -h localhost -d Aurel -U postgres Could you suggest a dump command that will match the restore command - pg_restore -h localhost -d PDW -U postgres aurel.sql Thanks Bob ----- Original Message ----- From: "Adrian Klaver" To: Cc: "Bob Pawley" ; "Tom Lane" Sent: Sunday, October 28, 2007 3:15 PM Subject: Re: [GENERAL] pg_restore > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match