pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to transfer databases form one server to other
Date: Sun, 26 Jan 2020 20:26:59 -0600
Message-ID: <fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com> (raw)
In-Reply-To: <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com>
References: <157139E4A01D436A859FB6612AE6BBD7@dell2>
	<1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com>
	<111D51B7C5C64419810F09C229E1D917@dell2>
	<23417975-69b8-e273-2a58-c65beb16decf@aklaver.com>

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.

view thread (13+ messages)  latest in thread

Message-ID: <fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com>
Permalink:  ../fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com/
Also on:    postgresql.org/message-id/fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: How to transfer databases form one server to other
  In-Reply-To: <fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com>
  References: <157139E4A01D436A859FB6612AE6BBD7@dell2> <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com> <111D51B7C5C64419810F09C229E1D917@dell2> <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com> <fded98fb-41f6-5d2a-5d1f-e765924d4d26@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox