From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Alan Stange <stange@rentec.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_upgrade question
Date: Thu, 2 Dec 2021 08:10:07 -0800
Message-ID: <b1780f09-fd51-3adf-b102-737d32404e3d@aklaver.com> (raw)
In-Reply-To: <bad5baeb-46e1-0b67-4d61-92693b6783aa@rentec.com>
References: <bad5baeb-46e1-0b67-4d61-92693b6783aa@rentec.com>
On 12/2/21 08:05, Alan Stange wrote:
> Hello all,
>
> We're running a 13.x installation and looking to upgrade to 14.1. This
> is all on Linux servers. We have a main instance running with a number
> of hot standby replicas configured. In the past, we have done a
> dump/restore on a slow evening and then rsynced all the bits around so
> that the main server and all replicas were identical at the start. The
> database has gotten larger now (~1TB) so that is a less desirable option.
>
> So I am thinking to do a pg_upgrade --link on each of the main and the
> hot standby replicas, and then restarting all the processes. I'm sure
> this will work fine on the main server, but I have not seen any mention
> of this working in the expected way on the hot standby replicas. Can
> someone confirm that the steps I described here will work in the way I
> am optimistically expecting it will?
Have you looked at steps 9 & 11 here?:
https://www.postgresql.org/docs/current/pgupgrade.html>
> I should mention that we are running on ZFS, and will take a snapshot
> prior to the upgrade, so that if something goes sideways with our use of
> --link we can revert back instantly.
>
> Thank you,
>
> Alan
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, stange@rentec.com
Subject: Re: pg_upgrade question
In-Reply-To: <b1780f09-fd51-3adf-b102-737d32404e3d@aklaver.com>
References: <bad5baeb-46e1-0b67-4d61-92693b6783aa@rentec.com> <b1780f09-fd51-3adf-b102-737d32404e3d@aklaver.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