Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3B0BF632BB1 for ; Fri, 16 Jul 2010 15:12:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 79366-04 for ; Fri, 16 Jul 2010 18:12:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 7722F632874 for ; Fri, 16 Jul 2010 15:12:04 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 16 Jul 2010 13:12:03 -0500 Message-Id: <4C405A9B020000250003375C@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 16 Jul 2010 13:11:55 -0500 From: "Kevin Grittner" To: "DAYSE ENGEMANN" , "pgsql-admin@postgresql.org" Subject: Re: How to move a database from HP server to Linux Server that had already one database. References: <5FCE2C21B63D86478DBA823B3A27B40149CF10495A@GVW1341EXA.americas.hpqcorp.net> <4C4054CC020000250003374F@gw.wicourts.gov> <5FCE2C21B63D86478DBA823B3A27B40149CF10498D@GVW1341EXA.americas.hpqcorp.net> In-Reply-To: <5FCE2C21B63D86478DBA823B3A27B40149CF10498D@GVW1341EXA.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/117 X-Sequence-Number: 35136 "ENGEMANN, DAYSE" wrote: > Kevin Grittner wrote: >> pg_dump | psql > And to restore it.. Can I use pg_restore -d new_db_name ?? I usually pipe the output of pg_dump to psql, and thereby avoid making a copy of the dump output entirely. If you want to dump in custom format, yeah, you would use pg_restore instead. -Kevin