Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Jg1-0002OE-V4 for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 06:01:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f8Jfw-0004hH-Ri for pgsql-general@arkaria.postgresql.org; Tue, 17 Apr 2018 06:01:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8Jfw-0004h8-Is for pgsql-general@lists.postgresql.org; Tue, 17 Apr 2018 06:01:08 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:50a2::3:1]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f8Jfp-0003A8-5F for pgsql-general@lists.postgresql.org; Tue, 17 Apr 2018 06:01:07 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.burggraben.net (Postfix) with ESMTP id 2D7FC6002F9 for ; Tue, 17 Apr 2018 08:00:58 +0200 (CEST) X-Spam-Scanned: by amavisd-new at exwg.net Received: from smtp.burggraben.net ([127.0.0.1]) by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fc9qAI6G7Pg7 for ; Tue, 17 Apr 2018 08:00:53 +0200 (CEST) Received: from squirrel.exwg.net (110.231.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch [178.197.231.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "squirrel.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS for ; Tue, 17 Apr 2018 08:00:53 +0200 (CEST) Received: by squirrel.exwg.net (Postfix, from userid 1000) id 9E5995B59C9; Tue, 17 Apr 2018 08:00:52 +0200 (CEST) Date: Tue, 17 Apr 2018 08:00:52 +0200 From: Christoph Moench-Tegeder To: pgsql-general@lists.postgresql.org Subject: Re: pg_dump to a remote server Message-ID: <20180417060052.mez447wrez6vcczu@squirrel.exwg.net> References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ## Ron (ronljohnsonjr@gmail.com): > > pg_dump -h host1 dbname | psql -h host2 dbname > > But that assumes --format=plain which will send a whole lot of > uncompressed text across the wire. You can also use pg_restore with standard input, i.e. pg_dump | pg_restore. Regards, Christoph -- Spare Space.