Re: How to transfer databases form one server to other - Mailing list pgsql-general

From Ron
Subject Re: How to transfer databases form one server to other
Date
Msg-id fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com
Whole thread Raw
In response to Re: How to transfer databases form one server to other  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: How to transfer databases form one server to other
List 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.

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How to transfer databases form one server to other
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: How to transfer databases form one server to other