Re: pg_dump to a remote server

From: Christoph Moench-Tegeder <cmt(at)burggraben(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: pg_dump to a remote server
Date: 2018-04-17 06:00:52
Message-ID: 20180417060052.mez447wrez6vcczu@squirrel.exwg.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

## Ron (ronljohnsonjr(at)gmail(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message vaibhav zaveri 2018-04-17 06:03:17 Which jdk version is supported by PostgreSQL
Previous Message Adrian Klaver 2018-04-17 04:07:03 Re: pg_dump to a remote server