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.96) (envelope-from ) id 1wVahQ-0024El-1D for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2026 19:59:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wVahO-00EP9a-11 for pgsql-general@arkaria.postgresql.org; Fri, 05 Jun 2026 19:59:22 +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.96) (envelope-from ) id 1wVTOY-00CFT3-2B for pgsql-general@lists.postgresql.org; Fri, 05 Jun 2026 12:11:26 +0000 Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wVTOW-00000001EXg-42Rb for pgsql-general@lists.postgresql.org; Fri, 05 Jun 2026 12:11:25 +0000 Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-6c36543e834so530854137.1 for ; Fri, 05 Jun 2026 05:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780661484; cv=none; d=google.com; s=arc-20240605; b=c/+FCUmu3dqtT2kO+4hVxxSJlyOhz4tauW/BKDzVPhWblIGwvuKGBBJxDjCLzvVaQp lj+RmkGF2SPJjgn3SDOEHmcyQvJXvHzvkDIyXomdeSJ5q7LsErk9tfL1Xa+OsQ0ARCpk mfGQ/4r8mHlbCQK2n+ANSvgqXu1Ovf+n2lLyhYkTfUhXZXFmDnqPN+8VgmmWwmz66rZ3 HDDXc8zs+jYAWG/h9/0mUnPy6axOnUriq/Qw2ZqPImbdRKYrjNeBcv7XxezIMkSP1cbO 0pYY4odSIkNXf/bpB9z0IZCnmoWVobd1PaKe46kEMG+Z4UKEgOjxy6N6uGakYH+By0vu roCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=o5a9AoF85uGLbMIAjKhxwGH79rpx3bx9wwCnvEvrtCU=; fh=4rCG0PM8n0FOokGy8sSWDJpgPdCgp6yIXcpABJ7tUh0=; b=KbTXjxgu5CL6ajO+UJ3CSXGHYysFH0dQkbI/V0yzmWLIbrAHP5OWCQKb3CzjIJFxRQ zEqMCNx+1dihd5UT0pSbihjLWYKHrlh0b5BGg8KzIuHbQLLvmXltgsmgJa0dinIIDB03 O4385KROmsadO9t4hMf7P1Gj3OPj+Wa8iBtWu8ZONF+heDMGYmDfeJMeipFV23NdNZas NNbGC7eIyEG+uTj3TPvML+ZeeMVSKPIa1ykfOL3vjDFvmKeUaqEWU2NbmPeU2gTwBAna 0ApSvT0m/Z0y247o/bl2yYEcE6kloquFgQfiecadGOykwn0mf/cLXIv9qVUoouW4TTxB cQGg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780661484; x=1781266284; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=o5a9AoF85uGLbMIAjKhxwGH79rpx3bx9wwCnvEvrtCU=; b=K0yBx032Opm/B6wg+JjDZ7OrQeMC3ZxJ3l7pRJ15RgMM6rJUl27aeEXJUJoBiNRA/D NV44129u+J87QZ8IYEAQsU28L9s3L9NJtC5g8fLYi833qkihVx0ekKkJ8U8zvsc4Jsyb xi/by3XwdD6GASRqlLCYIZfkdJkWlT/1uwAPH0j4DoEOuX286/ykFqLZzwpf0pO5rUyN sUsDgV8NYnaQqemTVcdBvq1IXxzgqR/+nTnEv6mGQzUgeucReJwtIYvKKpxSLk8rFotm DwtjX8V+dgBJEy193P/9kage4jwkDXj/Xu9HUIdMHo0rEV3bCZbruuwNWFbzYFToc1Qy UMcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780661484; x=1781266284; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o5a9AoF85uGLbMIAjKhxwGH79rpx3bx9wwCnvEvrtCU=; b=iBRUm07nMcwokAj0OAmbF8omZssYs6THl+5vTqy9NvYoQjyZp7n3Y+0wqT92W87Acn YSqT5N2uDahaKe26hh8gSCx1U50/AcFnAwGpPwjT4ak3YG4Pk+4ZemPmu5PR3q5EBDGn 3OuqsN4uNgdPllge5RGNm0FY8VnJxpCN12XyCVBkXb4BBce7JR5Ve60z8UNSIqNRFywA JZ9RJHvyztCKb0aNsm5pTjPKuscSDZ1+zASgOXo/OeTsEXt0/t3UzQnzy7plNMQ+TM/h xtpmdhS2S0IsfOvalLMCJIMzuhGjuIwTEisPtiguUdq0Ztk5QBLk8rNF+RyBfCSLR0Lm CheQ== X-Gm-Message-State: AOJu0YxU+B2BPgpKbRT8m89G01aAVBtnZKOvJrCRytHMY50JuyTBGOBm mo1FjDaPkBJuDSNrYpN+5oBYxS3Q9ntAEXUvqjWZ4ejivN7NZ+zTomU2SUOY5JFlKNKcy5Zlnjn fRnAUIcZ5Mm1Csg7aGv8P3XXkQd3TUfZ1OpBV X-Gm-Gg: Acq92OFIyAI2RnRPH0gXg4kiCiBUwquU1eVPGQ95mOZRq801fjRcSnadq8rC0gq+h/F pkRq//dcpAAhT2p0IRIb9VWGh+yhlKaROUbRPs37eDLYXxyRVjBLeVvBrNfwxIoEswfS502KDuY fCT883Gl5/Q+78BWqXEsBlg8A2LsiLHm/INpBdT4SRDgsjug2Opkw7FW1eLCGtwoezFcnp0MuSU YRKSZ2ZT1z/ADsMZctsGDPAT+DKtzc3a7seb/Xn/fwH8haUGEJIdPk2deFfqswuZBvauBXz9wHn 8JnptDC61YpLdc8PiQ== X-Received: by 2002:a05:6102:5094:b0:608:9a34:c8ea with SMTP id ada2fe7eead31-6fef9971468mr1334736137.10.1780661484161; Fri, 05 Jun 2026 05:11:24 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?Qm9yaXMgRG92xI3DrWs=?= Date: Fri, 5 Jun 2026 14:11:12 +0200 X-Gm-Features: AVVi8CckKIw5lNLg1JRbW8X2qPdA_NbL4zSAi7QajQE9QyOvQ0wRPqfwZiTbqCU Message-ID: Subject: Postgres 12 update to new major version To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000003a8fdc0653808ff7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003a8fdc0653808ff7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello all, I have a question regarding the update of the production database (multiple TB of data) from version 12 to higher major version. We would like to jump to 15 or 16. DB is installed on a Linux server with one replica on another, it is not on cloud. First question is should we perform updates one by one? 12 -> 13 -> 14 etc. or is it viable to jump to 16 right away? (We have few functions but usually its plain tables) Second we are contemplating options for the update since we are limited with downtime. We could get 4 hours of downtime for the whole update (either via pg_update or dumps). We are not sure how to estimate the time for direct update or dumps. What would be the recommended way for it? One option we see could be logical replication to the new major version on a new machine, but we received feedback that in our setup it might not be recommendable. Does it make sense to try logical replica? What would be the downsides of it? Best regards, Boris Dov=C4=8D=C3=ADk --0000000000003a8fdc0653808ff7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello all,

I have a question= regarding the update of the production database (multiple TB of data) from= version 12 to higher major version. We would like to jump to 15 or 16. DB = is installed on a Linux server with one replica on another, it is not on cl= oud.

First question is should we perform=C2=A0upda= tes one by one? 12 -> 13 -> 14 etc. or is it viable=C2=A0to jump to 1= 6 right away? (We have few functions but usually its plain tables)

Second we are contemplating=C2=A0options for the update si= nce we are limited with downtime. We could get 4 hours of downtime for the = whole update (either via pg_update or dumps). We are not sure how to estima= te the time for direct update or dumps. What would be the recommended way f= or it?

One option we see could be logical replicat= ion to the new major version on a new machine, but we received=C2=A0feedbac= k that in our setup it might not be recommendable. Does it make sense to tr= y logical replica? What would be the downsides of it?

<= div>Best regards,
Boris Dov=C4=8D=C3=ADk
--0000000000003a8fdc0653808ff7--