From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Upgrade from PostgreSQL 9.6 to 11
Date: Mon, 10 Jun 2019 10:13:06 +0300
Message-ID: <ae37036c-6c7c-8104-c3f8-3bdb2fcbb238@matrix.gatewaynet.com> (raw)
In-Reply-To: <CAKqG8NW8i3Pwo+jmRZOUK25et4Rk1PQ=7VcERpmyc22Z+ERnSA@mail.gmail.com>
References: <CAKqG8NVEefVJ8zCOJkDr+87w7Qmn6LU4Sim5dOj0utGhQ06_xQ@mail.gmail.com>
<04565a9e-fc52-f07b-e3d6-f3a877c1e81f@matrix.gatewaynet.com>
<20190610063650.GF2199@paquier.xyz>
<CAKqG8NW8i3Pwo+jmRZOUK25et4Rk1PQ=7VcERpmyc22Z+ERnSA@mail.gmail.com>
On 10/6/19 9:52 π.μ., Pawan Sharma wrote:
> Thanks all,
>
> Is pg_upgrade is the best method if I am doing upgrade on same server or different server.
>
> Same server means: source and Target on same server
>
> Different: source and Target are different server.
A traditional upgrade by definition is on the same server, (if we are not talking about logical replication or any other equivalent technology).
So yes pg_upgrade is what would be best, along with -k (--link) for maximum speed.
>
>
> On Mon, Jun 10, 2019, 12:07 PM Michael Paquier <michael@paquier.xyz <mailto:michael@paquier.xyz>> wrote:
>
> 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
>
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
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: achill@matrix.gatewaynet.com
Subject: Re: Upgrade from PostgreSQL 9.6 to 11
In-Reply-To: <ae37036c-6c7c-8104-c3f8-3bdb2fcbb238@matrix.gatewaynet.com>
References: <CAKqG8NVEefVJ8zCOJkDr+87w7Qmn6LU4Sim5dOj0utGhQ06_xQ@mail.gmail.com> <04565a9e-fc52-f07b-e3d6-f3a877c1e81f@matrix.gatewaynet.com> <20190610063650.GF2199@paquier.xyz> <CAKqG8NW8i3Pwo+jmRZOUK25et4Rk1PQ=7VcERpmyc22Z+ERnSA@mail.gmail.com> <ae37036c-6c7c-8104-c3f8-3bdb2fcbb238@matrix.gatewaynet.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