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 1v3tDZ-005C75-Ag for pgsql-general@arkaria.postgresql.org; Wed, 01 Oct 2025 09:33:49 +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 1v3tDX-00HSKa-CF for pgsql-general@arkaria.postgresql.org; Wed, 01 Oct 2025 09:33:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v3tDX-00HSKR-1A for pgsql-general@lists.postgresql.org; Wed, 01 Oct 2025 09:33:47 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v3tDV-0013NY-1s for pgsql-general@postgresql.org; Wed, 01 Oct 2025 09:33:47 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-3652d7800a8so54108521fa.0 for ; Wed, 01 Oct 2025 02:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759311223; x=1759916023; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0NkMmUvaNGsZ9ZEqlcE8z89dKwDBUHaw+vcrR3IhyS4=; b=iQme/yy49Wggts0Ke32lN5gs8v3G6rPGKO9iOhUPfM84WggswWSsn5sZhc627OTEZe ElnrPPkJOxMguat1HEOIMmiy0ax/nhwFaAU22SDmsMp08cWWgTcbjm/s4xO1PLytqpCc pxHAV5YfrKyNf9ZKAbPlKspIIgE30RbbZepoUxsoBuZzRKs7ajK2j0RlPxsta+7pJlPS 3/qnVjJRIkasAPPZ1TTNhGiHOtKGUzObaKWSwvM+Uu6zsotfyyHQvK9iryRmETZHKCVF slhJnU5qcU8JOLrZYUESy62RyTQjie6LFhkV3tnX286Xxw8UVYvljoShHgpMgz88/noB ITVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759311223; x=1759916023; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0NkMmUvaNGsZ9ZEqlcE8z89dKwDBUHaw+vcrR3IhyS4=; b=gXj9QowLOq/C++T/guJJLCc423fiJwuTM+W9QyehnYfZR1foeFzj+mLjUkMYYJtwp8 OGclapcXtRWtHGwJ3ZVymCEXxj7hSQoZu9lrCrm1KiGI7DK+a2ZX8MRue8s/4af6mXeu qtRjT2Rhr5m7jPe9qPwAfEm6LyKIq+IbVeSf5R4XByP06VjSyY9TIjgP0j/VsyZ+9rmC 4mV/Ed88pGljh60JM2ibUog5h8TC3qMqzPdmzPNj8QP/7LvKM/AHXQYNouzIRqgtEXpT jzwmlyia9OTaaMCCW3JVNeC6Di7FIdwOD/FzVBtjsNmhZ9CDKX8AAKNgHAjWFLb0ei+t plqw== X-Forwarded-Encrypted: i=1; AJvYcCVceBFkXdRnx62pQb2Wd6DTDzpdhbRvp90++0SteMeyNsDHgYWhaeYryCUE1TyRlrreUurCPEKSWKP9/oAm@postgresql.org X-Gm-Message-State: AOJu0YzoxptCNkqtXvPOMOb6KBmDi7/CpYGcZxwJ0wSpnqYovXcFntCG fodoxpB/rq90osc5Yuh1r4lj5izu7W/KKVjhiKSxfL0CsSA6bVBIgbIVUcFnxp0CDKMHHXuBRu7 xOBwjnlo1C5HwOAmg10NtfJMg02Kwr+U= X-Gm-Gg: ASbGncu6B5H/qU1cIN4xLFS81QyOXH7pUBaS0vLD2kFPX9whOLt/n8Ia6ngfWuRqM+a 2acbuvZdHt7guoJLfcG4Y2AA9RKR9w77aQy/NPVqbTbY+e/Exr7/jPRR1K4oghv8YYRL35GfDpo XGskoPaqDxxWITRb0b6jvLYTg28RyrFmAJBpCUEnPGlydCVQY1b/GM8UFVGZMlKma7m8AjsedvG +3IrFwYkHyAGe4jrl6xJKRL1Z7ur5fIjIHi+qGk2CfvpyL0CBeHZnj2FAloIsxA1c1VmE1dwg== X-Google-Smtp-Source: AGHT+IHaFSAK3LOnBl839EbMwDxxM23U43mQ+DDwEwndb2FFRCWHsYp54Mo0pY000WAVWxEDAOzi3PhObkicz6R/7FE= X-Received: by 2002:a05:6512:31d4:b0:571:e01b:da9f with SMTP id 2adb3069b0e04-58af9f39b78mr950951e87.31.1759311223207; Wed, 01 Oct 2025 02:33:43 -0700 (PDT) MIME-Version: 1.0 References: <230414d2-9a59-4395-bd81-74972c192e25@aklaver.com> In-Reply-To: <230414d2-9a59-4395-bd81-74972c192e25@aklaver.com> From: Ashish Mukherjee Date: Wed, 1 Oct 2025 15:03:30 +0530 X-Gm-Features: AS18NWAQ30H2CeMANn2vzGSsCzZndhZgv5jOkDx5xI6-bUG76FB2kvBjj9rhY_Q Message-ID: Subject: Re: Downgrade pgsql 17 to pgsql 12 question To: Adrian Klaver Cc: Merlin Moncure , pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="000000000000823b8a06401590e5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000823b8a06401590e5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think the conclusion is to do a more thorough testing before the upgrade next time. Have updated our playbook for upgrades to include more thorough testing. On Tue, Sep 30, 2025 at 8:17=E2=80=AFPM Adrian Klaver wrote: > On 9/30/25 01:23, Ashish Mukherjee wrote: > > Thank you all for your inputs. > > > > Well, Percona TDE was leading to the queries being very inefficient / > > slow after upgrading to pgsql 17. Explain analyze shows that query > > planning time shoots up crazily. A decision was taken to go back to > > How did you determine that Percona TDE was the issue vs a 5 version jump > in Postgres? > *I upgraded multiple non TDE databases from v12 to v17 and they are all fine.* > > > > Now the consideration is to use some other encryption option for the > > database which will work fine on pgsql 17. Cybertec's technology is one > > route, the other is EDB. I am happy to hear experiences of folks here > > with pgsql encryption options for v17 on large databases (2.5T in our > case). > > Personally I would verify first that you are not hitting some more > general issue with the 5 years of changes in Postgres since the last > release of 12 and current release of 17. > > > > > On Mon, Sep 29, 2025 at 5:10=E2=80=AFAM Merlin Moncure > > wrote: > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > --000000000000823b8a06401590e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think the conclusion is to do a more thorough=C2=A0= testing before the upgrade next time. Have updated our playbook for upgrade= s to include more thorough testing.

On Tue, Sep 30, 20= 25 at 8:17=E2=80=AFPM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 9/30/25 01:23, Ashish Mukherjee wrote= :
> Thank you all for your inputs.
>
> Well, Percona TDE was leading to the queries being very inefficient / =
> slow after upgrading to pgsql 17. Explain analyze shows that query > planning time shoots up crazily. A decision was taken to go back to
How did you determine that Percona TDE was the issue vs a 5 version jump in Postgres?

I upgraded multiple non= TDE databases from v12 to v17 and they are all fine.=C2=A0


> Now the consideration is to use some other encryption option for the <= br> > database which will work fine on pgsql 17. Cybertec's technology i= s one
> route, the other is EDB. I am happy to hear experiences of folks here =
> with pgsql encryption options for v17 on large databases (2.5T in our = case).

Personally I would verify first that you are not hitting some more
general issue with the 5 years of changes in Postgres since the last
release of 12 and current release of 17.

>
> On Mon, Sep 29, 2025 at 5:10=E2=80=AFAM Merlin Moncure <mmoncure@gmail.com
> <mailto:mmo= ncure@gmail.com>> wrote:



--
Adrian Klaver
adrian.klave= r@aklaver.com
--000000000000823b8a06401590e5--