Re: pg_dump to a remote server

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ron <ronljohnsonjr(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_dump to a remote server
Date: 2018-04-17 13:20:12
Message-ID: 7a8dc722-f61f-96fb-1a63-6d96ddd13b2a@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/17/2018 12:35 AM, Ron wrote:
> On 04/16/2018 11:07 PM, Adrian Klaver wrote:
>> On 04/16/2018 06:43 PM, Ron wrote:
>>>

>> More promising would be the suggestion from Michael Nolan:
>>
>> https://www.postgresql.org/message-id/CAOzAqu%2BVpOfzBHwcqptSzm3PkeZAjkqqc0XqB%2BA-jBNioU6x%2Bg%40mail.gmail.com
>>
>>
>> "Can you run pg_dump on the new server, connecting remotely to the
>> current one?"
>>
>> It eliminates two programs(ssh and cat) and a pipe.
>
> Is that supported?
>

Sure as long as pg_dump on the new server can reach -h and the
pg_hba.conf for the current server is set up to allow connections from
the remote client.

To test do something like:

new_server> pg_dump -t some_table -s -h current_server -f test_file.sql

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-04-17 14:26:48 Re: Postgresql with JDK
Previous Message Akshay Ballarpure 2018-04-17 12:24:12 RE: Data migration from postgres 8.4 to 9.4