Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0AE9A632F34 for ; Tue, 10 Aug 2010 13:34:15 -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 19940-02 for ; Tue, 10 Aug 2010 16:34:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mail.postgresql.org (Postfix) with ESMTP id 8D3D7632B9A for ; Tue, 10 Aug 2010 13:34:06 -0300 (ADT) Received: by wwb13 with SMTP id 13so1351227wwb.19 for ; Tue, 10 Aug 2010 09:34:05 -0700 (PDT) Received: by 10.216.3.19 with SMTP id 19mr4095026weg.108.1281458045699; Tue, 10 Aug 2010 09:34:05 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-124-126.sd.sd.cox.net [70.167.124.126]) by mx.google.com with ESMTPS id v11sm3441952weq.16.2010.08.10.09.34.03 (version=SSLv3 cipher=RC4-MD5); Tue, 10 Aug 2010 09:34:04 -0700 (PDT) Message-ID: <4C617F79.4010002@emolecules.com> Date: Tue, 10 Aug 2010 09:34:01 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: How to move a database from HP server to Linux Server that had already one database. References: <201008100014.o7A0Enb03841@momjian.us> In-Reply-To: <201008100014.o7A0Enb03841@momjian.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/64 X-Sequence-Number: 35313 On 8/9/10 5:14 PM, Bruce Momjian wrote: > ENGEMANN, DAYSE wrote: >> Hi Kevin, >> Sorry to disturb you.. But I am really new in it... >> Let me see if I understood... >> >> pg_dump -h sourcemachine -U sourceuser source_dbname | psql target_dbname > > Has anyone done any measurement of whether it is faster to do the dump > on the local machine with psql remote or from a remote machine (where > psql would be local)? It probably depends more on your network speed. If you have a slow network, then run pg_dump on the machine where the database lives and use compression (--format=c) and restore using pg_restore. It will cut WAY down on the amount of data that has to move across the net. If you have a fast network, then it doesn't matter very much -- you'll be limited by disk speed. Craig