Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id E00A69FA3D8 for ; Sun, 28 Oct 2007 19:58:26 -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 77760-01 for ; Sun, 28 Oct 2007 19:58:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from alnrmhc15.comcast.net (alnrmhc15.comcast.net [204.127.225.95]) by postgresql.org (Postfix) with ESMTP id CE0399FA5B9 for ; Sun, 28 Oct 2007 19:58:21 -0300 (ADT) Received: from [192.168.0.9] (c-67-160-97-72.hsd1.wa.comcast.net[67.160.97.72]) by comcast.net (alnrmhc15) with ESMTP id <20071028225819b1500ouigge>; Sun, 28 Oct 2007 22:58:19 +0000 From: Adrian Klaver To: pgsql-general@postgresql.org Subject: Re: pg_restore Date: Sun, 28 Oct 2007 15:58:55 -0700 User-Agent: KMail/1.9.1 Cc: Bob Pawley , Tom Lane References: <004401c81990$ef57e8c0$6401a8c0@owner> <200710281515.39475.aklaver@comcast.net> <001901c819b3$822878f0$6401a8c0@owner> In-Reply-To: <001901c819b3$822878f0$6401a8c0@owner> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710281558.56072.aklaver@comcast.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/1507 X-Sequence-Number: 122799 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