pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_dump to a remote server
Date: Tue, 17 Apr 2018 08:00:52 +0200
Message-ID: <20180417060052.mez447wrez6vcczu@squirrel.exwg.net> (raw)
In-Reply-To: <c8b8db5f-3122-cf10-d063-1e11c1062ecd@gmail.com>
References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com>
	<HK2PR0401MB1955AB0573949CC57DECA748D3B70@HK2PR0401MB1955.apcprd04.prod.outlook.com>
	<c8b8db5f-3122-cf10-d063-1e11c1062ecd@gmail.com>

## 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.




view thread (12+ messages)  latest in thread

Message-ID: <20180417060052.mez447wrez6vcczu@squirrel.exwg.net>
Permalink:  ../20180417060052.mez447wrez6vcczu@squirrel.exwg.net/
Also on:    postgresql.org/message-id/20180417060052.mez447wrez6vcczu@squirrel.exwg.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: cmt@burggraben.net
  Subject: Re: pg_dump to a remote server
  In-Reply-To: <20180417060052.mez447wrez6vcczu@squirrel.exwg.net>
  References: <53c302b2-a634-96c2-b1f5-328437eb37fd@gmail.com> <HK2PR0401MB1955AB0573949CC57DECA748D3B70@HK2PR0401MB1955.apcprd04.prod.outlook.com> <c8b8db5f-3122-cf10-d063-1e11c1062ecd@gmail.com> <20180417060052.mez447wrez6vcczu@squirrel.exwg.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox