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 1rx9Fq-006eJi-4G for pgsql-general@arkaria.postgresql.org; Wed, 17 Apr 2024 17:39:30 +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 1rx9Fo-00DWgb-Hk for pgsql-general@arkaria.postgresql.org; Wed, 17 Apr 2024 17:39:28 +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 1rx9Fn-00DWgS-WE for pgsql-general@lists.postgresql.org; Wed, 17 Apr 2024 17:39:28 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rx9Fk-001Ukd-Tu for pgsql-general@lists.postgresql.org; Wed, 17 Apr 2024 17:39:27 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-56e69888a36so8518951a12.3 for ; Wed, 17 Apr 2024 10:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arise-pl.20230601.gappssmtp.com; s=20230601; t=1713375564; x=1713980364; darn=lists.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=m0QoYujEQG6+ba7+jAeNPfZZvEV/xQiV/mRj2blo770=; b=w41Kj/tcchGPLYh8NSgYtyx+v28zM9BRCglfaNsU8Mq3otonKtor0EosGT82DaBH8Q sRYxypL+Uneeryk8ICkr9Dre+8lRXMAV6EhigqAMqlAiviaZEgF8vdoopj1t248V0j/+ 41tiMXzgYC0L5KvlPCP8QgBu1UnsIvZvA5+yM17Kf28CQ9kG0YtGrfRUHCQzWN8pCAsL l+2A+wivQsmJjxJ2iPENFNinEcWgoGaPOUClLHILZ7PRZiFS0MR240oJCbUUKI1zOD9k m29Fw98lkGK0gc+o7aNcYFwI2/7LQou3mxr0SpLUrYPfDZEjPjOqjuHCiumG4bM95tly FRew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713375564; x=1713980364; 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=m0QoYujEQG6+ba7+jAeNPfZZvEV/xQiV/mRj2blo770=; b=on5IAZH3XaX5zLvQF1+tCM1XSdSPJfufqSAGzxlAAqhQctShuH6lW2m+h2wUgZg2GQ wR7po4BiPhHLMBhd+CIarqsbsc9ITkeneI66wd003+Jzmnseb98N1rfX+bFwJ0wly5Z9 IwbPMXlrWwTLdBMFlfgAs1e96d5dxyNbmDye5MrmMZUwSH73DJzHPw9Chd1jA+Ldyo/B xubep8clGh2BtjL0QqSfGUUax843mi7NxDtyQsBkZyWlku9Y07yk6f0+lrqWrb+l80wC wCD9xfsWUY7J66Ow6GmFRnhHlU/xPZaYtsGccMJ2A77HZSvAky522cq8M/kxYfFZHStn ymlg== X-Forwarded-Encrypted: i=1; AJvYcCXvmwC+QjP7HQh71ald1rTbBA31dNmlKfM8F2YyqnhkNyMEW0e5F3jNBHLpU0BEJoTgEZJE6Y0iTkeLKJX6HVL7nnbeicHI+1YCllG4hvxzlOfm X-Gm-Message-State: AOJu0YwFkbBQ0xzJF/1LNjNSMmu8vaElokW/9WeuMwmGs1XIOCDPD6oF ZTnvgUuPOigYk8qSm5b9ZsDTnAl6DJIpOINxFtL3zxYU83kTWPLGqfc/Dq5IgLeeIq3sWuE0mBs YFuqq/Wro8tIUGWQnStjKXKHKYAwfP5mEpUM3jg== X-Google-Smtp-Source: AGHT+IH3H77zg3wm7ablDNd9t7d5cc3RkjFAIav/mUddctJtiHn1SnYfy087a8Nw1kMYO5tnfc4HO0XuDwkXZfm8sk8= X-Received: by 2002:a50:d582:0:b0:56e:33fe:5e88 with SMTP id v2-20020a50d582000000b0056e33fe5e88mr179549edi.34.1713375563912; Wed, 17 Apr 2024 10:39:23 -0700 (PDT) MIME-Version: 1.0 References: <72c40850-1dc6-41a9-ba90-e19328999ea8@enterprisedb.com> In-Reply-To: From: Marcin Giedz Date: Wed, 17 Apr 2024 19:38:57 +0200 Message-ID: Subject: Re: Performance degradation after upgrading from 9.5 to 14 To: Johnathan Tiamoh Cc: Tomas Vondra , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000dab49606164e551c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000dab49606164e551c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable how about this: jit =3D off ? Marcin On Wed, 17 Apr 2024 at 19:33, Johnathan Tiamoh wrote: > 1) How did you upgrade? pg_dump or pg_upgrade? > > I use pg_ugrade with kink option. > > 2) Did you run ANALYZE to collect statistics after the upgrade? > > > Yes. I ran vacuumdb-analyze in stages after the upgrade > > 3) Did you transfer the configuration, or did you just create a new > cluster with the default values? > > I transfer the configuration > > 4) What exactly is slower? Queries? Inserts? > > queries > > 5) Can you quantify the impact? Is it 2x slower? 100x slower? > > it's more than 5 times slower than before. Very high load averages > > On Wed, Apr 17, 2024 at 1:25=E2=80=AFPM Tomas Vondra < > tomas.vondra@enterprisedb.com> wrote: > >> On 4/17/24 19:13, Johnathan Tiamoh wrote: >> > Hello, >> > >> > >> > I performed an upgrade from postgresql-9.5 to postgresql-14 and the >> > performance has degraded drastically. >> > >> > Please, is they any advice on getting performance back ? >> > >> >> There's very little practical advice we can provide based on this >> report, because it's missing any useful details. There's a number of >> things that might have caused this, but we'd have to speculate. >> >> For example: >> >> 1) How did you upgrade? pg_dump or pg_upgrade? >> >> 2) Did you run ANALYZE to collect statistics after the upgrade? >> >> 3) Did you transfer the configuration, or did you just create a new >> cluster with the default values? >> >> 4) What exactly is slower? Queries? Inserts? >> >> 5) Can you quantify the impact? Is it 2x slower? 100x slower? >> >> >> regards >> >> >> -- >> Tomas Vondra >> EnterpriseDB: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company >> > --000000000000dab49606164e551c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
how about this:

jit =3D off ?

Marcin


On Wed, 17 Apr 2024 at 19:33= , Johnathan Tiamoh <johnath= antiamoh@gmail.com> wrote:
1) How did you upgrade? pg_dump or pg_up= grade?

I use pg_ugrade with kink option.

2) Did y= ou run ANALYZE to collect statistics after the upgrade?


Yes. I ran vacuumdb-analyze in stages after the upgrad= e

3) Did you transfer the configuration, or did you just create a ne= w
cluster with the default values?

I transfer= =C2=A0the configuration

4) What exactly is slower? Queries? Inserts?=

queries

5) Can you quantify the imp= act? Is it 2x slower? 100x slower?

it's mo= re than 5 times slower than before. Very high load averages=C2=A0

--000000000000dab49606164e551c--