Re: pg_dump to a remote server - Mailing list pgsql-general

From Christoph Moench-Tegeder
Subject Re: pg_dump to a remote server
Date
Msg-id 20180417060052.mez447wrez6vcczu@squirrel.exwg.net
Whole thread Raw
In response to Re: pg_dump to a remote server  (Ron <ronljohnsonjr@gmail.com>)
Responses RE: pg_dump to a remote server
List pgsql-general
## 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.


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: pg_dump to a remote server
Next
From: vaibhav zaveri
Date:
Subject: Which jdk version is supported by PostgreSQL