Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uATcg-00FoCu-VE for pgsql-general@arkaria.postgresql.org; Thu, 01 May 2025 13:06:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uATcd-002oQZ-Do for pgsql-general@arkaria.postgresql.org; Thu, 01 May 2025 13:06:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uATcd-002oQR-2y for pgsql-general@lists.postgresql.org; Thu, 01 May 2025 13:06:40 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uATcY-000Wbe-10 for pgsql-general@postgresql.org; Thu, 01 May 2025 13:06:39 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-30bfc79ad97so22117231fa.1 for ; Thu, 01 May 2025 06:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746104793; x=1746709593; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=hzONt+gz1jOk6t4Dr/n3uOsMXQiCoIXck4LGvgO/R8M=; b=kJoYZmQTiQ1IbdY9PpInRMKq6HvAYFu/63BHH8/BqXE4Z9c+/yr5cKzG8G4u+32SME hHWy/M+w2ZlERSVxOcS/OpKRF6fYUBf+UoEbWf9EN2Pi683vfFEMYyv+ClTP3LF34g8O 0KjDr3PBqUqFmwLqZedeSdStbZ0v6TrqGacPEDmiL/YJ0ejzXnPvxOliX0MHAuam8OcP Xg5FlxBV5DtXbOws8Kyw/+jyWwXL40mNHX5r1JR6QCudL0gaJBAHKQ0E9zfSn5rXK7Kd ni7ZrRVLXECmMdAOTlFkSGIhirwmCEcUI2Ub1xpd3CAGcxgfXTTEU8B2dof9huPobE4I YFvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746104793; x=1746709593; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hzONt+gz1jOk6t4Dr/n3uOsMXQiCoIXck4LGvgO/R8M=; b=g6wLOsS60W2KEFhYnVlkA07KMwJuS+ALtJWLbZUzuz8/aZaEsk3G4deD7lHkt8WjAQ nnVcfQPj1MY60Md9Whc2lwvnWZqIsO6UYmKbMNCWnIne+fpWANsLNpwRZIwTZxwzkQBA tuffEjgeXSWewgrwmcKOKXum2YkLFyDwrLJD9ELWCKOMM6KV8gCEXDrw4g9LJk7Uh6so Nj/4Kza/gupYkHL4ZQ8fbxwVzc6XFWEPUaWHrs0RbFFg6PIRMCv0L/SRXaytsLfzS/B+ 0EAp8gK78jVMdZQcXDFTyRi52WeH30kl+pZjG0VaNBhwecBs9Bb3PARVG6BwlC+fCP+f jrbA== X-Gm-Message-State: AOJu0YwyIueJYDMGZTOOxVWQta64RpIx7nwWEAorpkM/RaVl78DNw8L9 R5HXj9/QJSWVM9N4S1P2kAztX5XJgUTJyadW+45VIZcVXWModGD7XbqFL9YZkhHjL38dANWATtA AmgP/DJn/eTGyNU4RpwO0e3cBVU876QjA X-Gm-Gg: ASbGncuTJz2teYpzBLxVWLxWlZbY6GE4xPbMFHlYoedBCNpbCDL7zmBrcFPm8UNKC6v JZMJ0K4xboh12bU01+BoykDl91BXrPLwQXX8w765xgorBYvoU0csMWjQ6hwLaiQuv6f59QkiwCf BCEEsOOwV9Gp3vp0YTnycfuAeSXNnVQqiUIrrR8ZRm53zMg8Dugb6bAaA= X-Google-Smtp-Source: AGHT+IGUn57Q0ij8CzMzc+1nXemhhJIqgo/4f+4DI0KGV7C9fjOCWWUF9OUfrRLRZ0gcv6XtIchg4HKcicuf/99RXuw= X-Received: by 2002:a2e:be2b:0:b0:30b:a100:7fec with SMTP id 38308e7fff4ca-31fc0dfb15dmr6404751fa.12.1746104792381; Thu, 01 May 2025 06:06:32 -0700 (PDT) MIME-Version: 1.0 From: Durumdara Date: Thu, 1 May 2025 15:06:22 +0200 X-Gm-Features: ATxdqUF6S8w3n4EWXqODpFh__OTbIJM_1GWTyHfCpFEIp8RbiSuGNwszZj8gG1A Message-ID: Subject: Upgrading PG11 to PG17 without dump/restore To: Postgres General Content-Type: multipart/alternative; boundary="000000000000e40096063412b35c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e40096063412b35c Content-Type: text/plain; charset="UTF-8" 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 --000000000000e40096063412b35c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!

There is a heavily used server, with older d= ebian, 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 m= ove them one by one.

But this seems to be very har= d, 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=C2=A0example we make= a new cluster element (a read only slave) with newest debian/PG, and use i= t to move the data in the background (replication).
And then we rename i= t to master. But I don't know if it's possible or not.
Ma= ybe 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 P= G_Upgrade=C2=A0because of too many version differences=C2=A0(11 < 17).

But maybe you have some good advice, how to do this= with less complication.
Users can tolerate short downtimes, but not l= onger ones.

Thank you!

Best reg= ards
dd

--000000000000e40096063412b35c--