From: Michael Paquier <michael@paquier.xyz>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Upgrade from PostgreSQL 9.6 to 11
Date: Mon, 10 Jun 2019 15:36:50 +0900
Message-ID: <20190610063650.GF2199@paquier.xyz> (raw)
In-Reply-To: <04565a9e-fc52-f07b-e3d6-f3a877c1e81f@matrix.gatewaynet.com>
References: <CAKqG8NVEefVJ8zCOJkDr+87w7Qmn6LU4Sim5dOj0utGhQ06_xQ@mail.gmail.com>
<04565a9e-fc52-f07b-e3d6-f3a877c1e81f@matrix.gatewaynet.com>
On Mon, Jun 10, 2019 at 09:00:38AM +0300, Achilleas Mantzios wrote:
> On 10/6/19 7:36 π.μ., Pawan Sharma wrote:
>> What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL
>> 11 instead of pg_upgrade.
>
> why not pg_upgrade ? If the size is near the 3TB mark as you say,
> pg_upgrade is the fastest IMHO.
When it comes to upgrades, you could also look at logical
replication. Unfortunately your origin version cannot do that. Have
you looked at things like BDR or Slony? They are logical-based,
meaning a lower downtime than pg_upgrade, but they take longer.
For 3TB pg_upgrade can also be very fast if you use --link. Be wary
of having backups though, all the time.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, achill@matrix.gatewaynet.com
Subject: Re: Upgrade from PostgreSQL 9.6 to 11
In-Reply-To: <20190610063650.GF2199@paquier.xyz>
References: <CAKqG8NVEefVJ8zCOJkDr+87w7Qmn6LU4Sim5dOj0utGhQ06_xQ@mail.gmail.com> <04565a9e-fc52-f07b-e3d6-f3a877c1e81f@matrix.gatewaynet.com> <20190610063650.GF2199@paquier.xyz>
* 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