public inbox for [email protected]
help / color / mirror / Atom feedFrom: Durumdara <[email protected]>
To: Postgres General <[email protected]>
Subject: Upgrading PG11 to PG17 without dump/restore
Date: Thu, 1 May 2025 15:06:22 +0200
Message-ID: <CAEcMXh=PtUgwj5exvV8PpyvY0H=eOtUkn-wAPcn7p35vkeHzmg@mail.gmail.com> (raw)
Hello!
There is a heavily used server, with older debian, and PG11.
The data is more than 1,2 TB.
The PG_Upgrade is not possible because of lesser space and too old debian.
As we see now we have only one way to move this server.
1.) Installing a new server with actual debian.
2.) Installing the newest PG (17) on it.
3.) Stop work on one database. Dump it in the old, restore it in the new
and start the work with that. So we can move them one by one.
But this seems to be very hard, because we need to do this through an
internet connection, and the data is too much.
I have a question about it - is there a better way to do this?
For example we make a new cluster element (a read only slave) with newest
debian/PG, and use it to move the data in the background (replication).
And then we rename it to master. But I don't know if it's possible or not.
Maybe the slaves must be the same version as the master.
The main problem is that debian is too old, and we are afraid to use
PG_Upgrade because of too many version differences (11 < 17).
But maybe you have some good advice, how to do this with less complication.
Users can tolerate short downtimes, but not longer ones.
Thank you!
Best regards
dd
view thread (4+ messages) latest in thread
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: Upgrading PG11 to PG17 without dump/restore
In-Reply-To: <CAEcMXh=PtUgwj5exvV8PpyvY0H=eOtUkn-wAPcn7p35vkeHzmg@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox