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 1v3c3f-000uHx-4W for pgsql-general@arkaria.postgresql.org; Tue, 30 Sep 2025 15:14:27 +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 1v3c2e-00AcTq-8T for pgsql-general@arkaria.postgresql.org; Tue, 30 Sep 2025 15:13:24 +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 1v3c2d-00AcTi-U0 for pgsql-general@lists.postgresql.org; Tue, 30 Sep 2025 15:13:24 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v3c2c-000ih0-0P for pgsql-general@postgresql.org; Tue, 30 Sep 2025 15:13:23 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-57a960fe78fso7088435e87.2 for ; Tue, 30 Sep 2025 08:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759245201; x=1759850001; 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=yOyTkP0+tbEamUs/XAkkFvYr8dqgM1O+Cu64LAKAnSU=; b=Ebu5DVhork4/ZQNrMPB6LTD2+OP59QFMg2TPXjGA+xVezdD6mjUOweMu/4z5XkGwb3 T/oyCG3aKN3R/o2VHjIOXhOH9aLX4Lcg0M4VpYtKhbvdXElW8lgFi5BydWpLh7BFpj/F AKaAlvejg9f0ThesRE1j4bUCPNvxTsOFuZmdA7RXMqbpWvJ/mmQrYylvvTgzRs2qDgva 4m4R7n5cJVf2O4Dmjiv9NqkeFeo0v38j3nuMdIUHx/488Llmh20/Wi+d78x2P54TfRzB 2Y8MoSrSRHe91NzSQz5YpCup2peDnmNTzLoFxnJpuXo+wwa5dATbqqntRzHGAuGfvQB7 bxLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759245201; x=1759850001; 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=yOyTkP0+tbEamUs/XAkkFvYr8dqgM1O+Cu64LAKAnSU=; b=pGNCz82yGGmmFWcA67D19IzKS4//EGBfuuiGE3OWVJuMAYC4gIXlNSPG2PyjFoVs83 AKqbTtT56UUyKfRZay627h165jr6zyksJjfww7+u6l2SvSoHAmhcxaOyeQOzfCylgi2Q gLCI4F1huMqSm65Cm/qEKd7qx6uzd1q+bdGqPblqJotGDqOqsCdzaxZDo7hxMdAoIZdD LGy4rKGR26hobYHpvF7YtHS3swAyj2kfHyUZdJQJDu/wHjF/dobCMZ5x0h9a4jios2WL jLMLAZD0nFKdrzWR3vj/qQBuPGs3v+pbBCfzZpAq3OCn594IPr7UtHMl0ZE4JUS15oQC umpg== X-Forwarded-Encrypted: i=1; AJvYcCXyzDhrlQxOTNxXpSayNKnJlyNDi0xev51ns+nmUddB/QIuYiUE4rfegcSHq12aewYx3Jdcv1B7M+mdGEFq@postgresql.org X-Gm-Message-State: AOJu0YyvRU0IOmeQGOIJC0nWmUXubxTSYLEdjEE1QvuneUDk5Jc3JPwm aQPs4i1No9PcJKk3W9PXHsjDWScsPWLs4AyIXmgqrJqxnkrNp5/j8PIcMHe/8I2KhjgmhEApQY9 KCd8SImmn/Wu3VmNyejOnz2NiyIolmXA= X-Gm-Gg: ASbGncslYLCY1wI2IoVKadjS/WDPQKu9MEzsMjs4oCGjod5BMvftdZTzWxXqlvHIVwD MwU9vJvMkBCJk8KEYa8lWDUpALcnBcJyk9qkyNym/SViVYwcbAhshJG+5wSAZKKo9Agz8B7bcsy wcyq5NfSAjVwVxdZ09CeboNiOwvGXF2cOf9mUzLaCVupplUYWtvPoZ1hOWdpbbi4bj57cl67lyy N9XZU055PVO0HQL7pb7adVTJbDcg2WxnQp2O9VU/sgwIBs80LOF3gVSdlXZVaK+tOkHdHwdEQoa 5CG4Gj5NNYrltyaBf+/EVdaBB3NsfKGP X-Google-Smtp-Source: AGHT+IEFjnsaX4hNbZ0z63DluiSO1Y3NMdiBPAMOBqQZRap2SNG3Vc6i/AaMKjJm/sd8fugBLG/lOA6Pjpj0kvzsMWk= X-Received: by 2002:a05:6512:6c8:b0:577:6e42:3718 with SMTP id 2adb3069b0e04-582d092e619mr6664450e87.7.1759245200759; Tue, 30 Sep 2025 08:13:20 -0700 (PDT) MIME-Version: 1.0 References: <9db5f4a38ad248accaba926ba75e10ed50e5ef1d.camel@cybertec.at> In-Reply-To: <9db5f4a38ad248accaba926ba75e10ed50e5ef1d.camel@cybertec.at> From: Merlin Moncure Date: Tue, 30 Sep 2025 09:13:06 -0600 X-Gm-Features: AS18NWDy1sNWCbyrR9Pgl2O_lQGcXtKuuCo0bV5UY3EnJtlWPJWwQG6S8Aiu7pw Message-ID: Subject: Re: Downgrade pgsql 17 to pgsql 12 question To: Laurenz Albe Cc: Ashish Mukherjee , pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="00000000000043a2c40640063137" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000043a2c40640063137 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Sep 30, 2025 at 3:47=E2=80=AFAM Laurenz Albe wrote: > On Tue, 2025-09-30 at 13:53 +0530, Ashish Mukherjee wrote: > > 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). > > I will refrain from making a recommendation, but you should know that > data-at-rest encryption will always incur a certain performance penalty. > > Whatever solution you choose, you should run performance tests. > Yeah. This applies to database upgrades in general. The lists have quite a bit of, I upgraded, and "query X that drives my platform now is 100x slower". I don't think this suggests that postgres is getting worse; foundationally, it's mostly getting faster, but simply that the planner changes how it responds to certain conditions. Over time, I've learned some painful lessons and try to write SQL that is less risky from a performance standpoint. Developers tend to optimize into fragile planner behaviors chasing performance, sometimes without realizing it. These kinds of issues are almost always very fixable assuming you can modify the SQL or the thing writing the SQL. The takeaway here is: test/verify before making major upgrades, and bake in some recalibration time. Adding encryption or other major features strongly reinforces that need. merlin --00000000000043a2c40640063137 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Sep 30, 2025 at 3:47=E2=80=AFAM L= aurenz Albe <laurenz.albe@cy= bertec.at> wrote:
On Tue, 2025-09-30 at= 13:53 +0530, Ashish Mukherjee wrote:
> Now the consideration is to use some other encryption option for the > 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).

I will refrain from making a recommendation, but you should know that
data-at-rest encryption will always incur a certain performance penalty.
Whatever solution you choose, you should run performance tests.

Yeah.=C2=A0 This applies to database upgrades in g= eneral.=C2=A0=C2=A0

The lists have quite a bit of,= I upgraded, and "query X that drives my platform now is 100x slower&q= uot;.=C2=A0 I don't think this suggests that postgres is getting worse;= foundationally, it's mostly getting faster, but simply that the planne= r changes how it responds=C2=A0to certain=C2=A0conditions.=C2=A0 Over time,= I've learned some painful lessons and try to write SQL that is less ri= sky from=C2=A0a performance standpoint.

Developers= tend to optimize into fragile planner behaviors chasing performance, somet= imes without realizing it.=C2=A0 These kinds of issues are almost always ve= ry fixable assuming you can modify the SQL or the thing writing the SQL. Th= e takeaway here is: test/verify before making major upgrades, and bake in s= ome recalibration time.=C2=A0 Adding encryption or other major features str= ongly reinforces that need.

merlin
--00000000000043a2c40640063137--