Re: How to transfer databases form one server to other

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: How to transfer databases form one server to other
Date: 2020-01-27 02:26:59
Message-ID: fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/26/20 7:30 PM, Adrian Klaver wrote:
> On 1/26/20 2:47 PM, Andrus wrote:
>> Hi!
>>
>>> Before you do any of this I would check the Release Notes for the first
>>> release of each major release. Prior to version 10 that would be X.X.x
>>> where X is a major release. For 10+ that is X.x.  I would also test the
>>> upgrade before doing it on your production setup.
>>
>> I want to create test transfer first, check applications work and after
>> that final transfer.
>>
>>> Best practice if you are going the dump/restore route is to use the
>>> pg_dump binary from the new server(12) to dump the old server(9.1)
>>
>> Postgres version 12 pg_dump probably cannot installed in old server
>> (Debian Squeeze 9).
>> Running pg_dump in new server probably takes much more time since data is
>> read from uncompressed form and dumping is time-consuming process.
>> (internet connection between those server is fast, SSH copy speed was 800
>> Mbit (not 100 Mbit as I wrote), it took 5 minutes to copy 37 GB).
>
> Test it and see how slow/fast it is.

I ran *uncompressed* pg_dump on multiple TB+ sized databases from v8.4
servers across the LAN using 9.6 binaries on the remote server.  It was
quite fast.  Threading was key.

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Joseph Krogh 2020-01-27 04:44:52 Re: How to transfer databases form one server to other
Previous Message Adrian Klaver 2020-01-27 01:30:41 Re: How to transfer databases form one server to other