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 1v29F3-000lZ3-MB for pgsql-general@arkaria.postgresql.org; Fri, 26 Sep 2025 14:16:09 +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 1v29F1-001vTa-MJ for pgsql-general@arkaria.postgresql.org; Fri, 26 Sep 2025 14:16:08 +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 1v1zaG-007uA3-PP for pgsql-general@lists.postgresql.org; Fri, 26 Sep 2025 03:57:24 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v1zaE-002To4-2J for pgsql-general@postgresql.org; Fri, 26 Sep 2025 03:57:23 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5797c8612b4so2330757e87.2 for ; Thu, 25 Sep 2025 20:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758859041; x=1759463841; 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=eP91oIY6HYCj4i/LRnEdBiaa0J5712sKc7/MuavOdAw=; b=dLd6m7NkBl4v0zZocYGTX/23ZHjfi6xNF8fn+tio3ng1JDM20viBIzg0QIrOFYFt1c NdfHbMBgspsjHiY4WrsgXXcDezX83BRkZ/dHRKGpbu1hEYBijFijgoiykso4g8G4HsuA yAQVE5mY1BUF6BHwCFsQoAyZ8lIHFk2IkWXuRfZkhKYe7R+t3cUm9CoiNcRg1WsGSZqe abxVeyBBQ8Vb/aCkvicAe5hzZlj7b0pmTa0NIq7WoNfeSGgF7dsuIkfTbWzZQAiXKTjc pOBXloU78J6ldX6Tb8YTxusYhW4B001RwlAMazQsvfFm4aKD9dya+X7zK4lvAv1ZUvXH 8meg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758859041; x=1759463841; 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=eP91oIY6HYCj4i/LRnEdBiaa0J5712sKc7/MuavOdAw=; b=qdOQoVY1m/d2P+hwCJOm+V4jpjV9dhfl/g18fb2T7QOGIHzOFEo9al8xui8wcHOfGG LlCC5owkMqhTCQ6YhaqXi+QeEoaQZuE8Rd64pZFFKs1ugNJ0+QXEcSY0fhuQ6mSBnOjR Xu0kmvO5cGAoMK93oM4G6nIOuZNRlg6XP68NVdzeaLgK+Hc45LxOpYD0sqkCT8VTyXUu /LNtEFiDbdk4XKACik+Kf1a5ZSsMWcc7FwpuRXE11exrTWjOQcFT466XQXVkSPwWOuEA DxxhcZ4M0qlZvhlX1O5/IhRvPYGhinzIKgmvm2cZA2hrWFypkiDNJn2/Yas60uy6QQB4 Y73g== X-Gm-Message-State: AOJu0YxjbEvBWGkDdYVBPUyJ+U+5OqhZGjITRUyuXlHnq4vpcIiwHSGk mAkgufVp56RQsSTrtDYun/xtTOZD9YZP/NfjnFi6RQHIzMg3jjzEUY3p84fP8w2a4CvMqzprOqk L9MGouF2ZlCxo004cPGbuXEWKaKrPPT9vTje5 X-Gm-Gg: ASbGncublWvMMEOdsFyJHGLiUbKb22hGKLjfnFELIAqd9RhO8s4gnpk/8jXolbokLAl vMO5aIUE6loag2BUr3GeehEYJAjQFrlw68rbr3J0VM754ZRTr/xj1bRzw5btz2zH+Gy1Z6xYbBR ZTIh8Chzcv99DUKexub3h07vrWUcUJLBO2+AtFybRviUe/oYEx+wvy8GLB+0m2qGR3VhMa0xmke m3gIEtEUD2TcSib2Pbiral6XGcm9aPIuh6XVOBhL/swZBtQjg== X-Google-Smtp-Source: AGHT+IH32MPU5XCmSeOmsccfOjnMvvuwxGsC6Sq405Tu4fIGD3Q46Y5MURFeS0iRFWp1TwqOr/4nX0kD5YP/8hxGsAk= X-Received: by 2002:a2e:a812:0:b0:364:45a:5159 with SMTP id 38308e7fff4ca-36f7ff16d36mr15926731fa.30.1758859041187; Thu, 25 Sep 2025 20:57:21 -0700 (PDT) MIME-Version: 1.0 References: <316ad242-3d52-49ca-b219-998798ed4b5c@aklaver.com> In-Reply-To: <316ad242-3d52-49ca-b219-998798ed4b5c@aklaver.com> From: Ashish Mukherjee Date: Fri, 26 Sep 2025 09:27:09 +0530 X-Gm-Features: AS18NWC_SCl8dxst8uyiJsb_bVySOP8euUalS_e9tdmnQFtWeJSFm7i6Z-UhKmU Message-ID: Subject: Re: Enquiry about Percona TDE performance issues To: Adrian Klaver Cc: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="0000000000005c2ba1063fac4804" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005c2ba1063fac4804 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, PgSQL 12 also had TDE The upgrade was done by taking a complete dump of the schema + data from v12 instance and then restoring to v17. Used pg_dump and pg_restore respectively. Yes, Vacuum analyze was also run on the new instance. On Fri, Sep 26, 2025 at 12:40=E2=80=AFAM Adrian Klaver wrote: > On 9/25/25 04:36, Ashish Mukherjee wrote: > > Hello, > > > > I recently upgraded from pgsql 12 to pgsql 17. It's a Percona TDE > > enabled database. However, after the upgrade the query planning time ha= s > > shot up by 10x when I check explain analyze output. > > Did the Postgres 12 instance have the Percona TDE extension installed als= o? > > How did you do the upgrade? > > Did you run ANALYZE on the new Postgres 17 instance? > > > > > > Regards, > > Ashish > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > --0000000000005c2ba1063fac4804 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, PgSQL 12 also had TDE

The upgrade = was done by taking a complete dump of the schema=C2=A0+ data from v12 insta= nce and then restoring to v17. Used pg_dump and pg_restore respectively.

Yes, Vacuum analyze was also run on the new instance= .

On Fri, Sep 26, 2025 at 12:40=E2=80=AFAM Adri= an Klaver <adrian.klaver@ak= laver.com> wrote:
On 9/25/25 04:36, Ashish Mukherjee wrote:
> Hello,
>
> I recently upgraded from pgsql 12 to pgsql 17. It's a Percona TDE =
> enabled database. However, after the upgrade the query planning time h= as
> shot up by 10x when I check explain analyze output.

Did the Postgres 12 instance have the Percona TDE extension installed also?=

How did you do the upgrade?

Did you run ANALYZE on the new Postgres 17 instance?


>
> Regards,
> Ashish


--
Adrian Klaver
adrian.klave= r@aklaver.com
--0000000000005c2ba1063fac4804--