Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id DAE0D9FB8DC for ; Mon, 29 Oct 2007 13:52:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 61304-02 for ; Mon, 29 Oct 2007 13:52:33 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from pd3mo3so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by postgresql.org (Postfix) with ESMTP id A5CE79FBA49 for ; Mon, 29 Oct 2007 13:52:23 -0300 (ADT) Received: from pd2mr6so.prod.shaw.ca (pd2mr6so-qfe3.prod.shaw.ca [10.0.141.9]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JQO00L1VMUFGZ90@l-daemon> for pgsql-general@postgresql.org; Mon, 29 Oct 2007 10:51:51 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca ([10.0.121.149]) by pd2mr6so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JQO00G09MUDX940@pd2mr6so.prod.shaw.ca> for pgsql-general@postgresql.org; Mon, 29 Oct 2007 10:51:49 -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 <0JQO00A4BMU2L120@l-daemon> for pgsql-general@postgresql.org; Mon, 29 Oct 2007 10:51:48 -0600 (MDT) Date: Mon, 29 Oct 2007 09:50:25 -0700 From: Bob Pawley Subject: Re: pg_restore To: Adrian Klaver , pgsql-general@postgresql.org Cc: Tom Lane Message-id: <002901c81a4b$cf3203d0$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> <200710281515.39475.aklaver@comcast.net> <001901c819b3$822878f0$6401a8c0@owner> <200710281558.56072.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/1521 X-Sequence-Number: 122813 Following the examples in the docs I've come to this. I am attempting to restore the existing sql dump using psql -d PDW -f aurel.sql I am then asked for a password. I try every password that the computer knows with no success. Funny thing the password cursor doesn't move when inputting the password. I keep getting authentication failure. When I attempt to do a new pg_dump with -Fc I also get a request for password with identical results. Bob ----- Original Message ----- From: "Adrian Klaver" To: Cc: "Bob Pawley" ; "Tom Lane" Sent: Sunday, October 28, 2007 3:58 PM Subject: Re: [GENERAL] pg_restore > On Sunday 28 October 2007 3:40 pm, Bob Pawley wrote: >> 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 >> > It depends on what you want to do. But to use pg_restore you will need to > use > one of either -Fc or Ft after the pg_dump command. My concern is that you > are > connecting to a different database name in the dump and restore commands. > This may be what you want, but then again it may not.I would suggest > reading > the information at the URL below before proceeding further. > http://www.postgresql.org/docs/8.2/interactive/app-pgdump.html > > -- > Adrian Klaver > aklaver@comcast.net