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 1rx92N-006d3S-3T for pgsql-general@arkaria.postgresql.org; Wed, 17 Apr 2024 17:25:35 +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 1rx92L-00DGFs-Iq for pgsql-general@arkaria.postgresql.org; Wed, 17 Apr 2024 17:25:33 +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 1rx92L-00DGFk-6t for pgsql-general@lists.postgresql.org; Wed, 17 Apr 2024 17:25:33 +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 1rx92H-001UdG-LG for pgsql-general@lists.postgresql.org; Wed, 17 Apr 2024 17:25:31 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-57013379e17so4408963a12.0 for ; Wed, 17 Apr 2024 10:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1713374728; x=1713979528; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=f/50Mu7YCAoAH4zsd7za7qmoTYcyEQDoCAscN6Ttlhw=; b=HtPCNGYJ49yiWAwrmph0F6ZbhbaAIu68J0tvcZSrxTO1gXYrCDFNbLEqwxVDEdWcDm 4mLTX7ELwkk3cWgoDlcqyyzd01rOdx+TLqr0+1QsrprNg8XgwOIkuACwVULrrWQxnofl lIlSm1Qh7aAS0TfD2iiEv9Z2Rb9PJ8RYReeqcegPVwdRjXSPThW9wISi4poc1EuAvqTA GswsuRZN+H1l8stUUXQSNz32ysT56PGQxvo0C52Lpq8UOZ9r5iE5n0c+/vmxoGhqJYpK kMNdKd1SxDlykXxUrSRotf8PFeZAuQBP/TeYtNfdoi7plqC47JiaV2XLo13fflpkBbqY sFWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713374728; x=1713979528; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f/50Mu7YCAoAH4zsd7za7qmoTYcyEQDoCAscN6Ttlhw=; b=dpBzrlltZqZSmV2iqiDAz5qPE6Zz8RWwt9IqRd4azlyIVk3dZ+BRr/fv2/49v/nAp4 1DNis5L0xsjb3xpW5LZ0SAZQYYGS25QaU+5eC3lT6RuRmzcR3LsYiOtgpMTe/cem8yM9 XQnbT8D22U/1Ubmw5nFpr5cytXTtoiXFb3McIjO3lENbB7sNMWHxq05v/vNpg6ASvGRM iQU//VbycpP7ugW2IIXhX6u3a3oDTJM7ktqV+zcrVftcMpHuA49RU5xa+FAAtIbsrYCe AeQ1cpcZss5r7Yfy2EbYSvvCeCfC9NuuAFwsYqKYdB9aMkI9eNllSLf7xxxUXXLb+3XO jaWg== X-Forwarded-Encrypted: i=1; AJvYcCWTXa99UeI0F1WEGBk1tked4syN2G1w7GOc7rUpIaJgIMC5psgGuBPFMVgkUsJ7LRCyskQHpDwR9CvytbVXKj7YTpSNpViqpRkz0dFPxCyABQZo X-Gm-Message-State: AOJu0YxfVOzbOwPiH4ixKjvynKXFqe35KNRQ7Hme3S3f5mR+u/vH9Txk PIkJNb0lBsmgFqsB93blHphaoUs9xWI7J6jHv3FHzObivkmWhnge0TbK8WcNlY8roNn/VXZSm30 = X-Google-Smtp-Source: AGHT+IFGdVK/Vk8mIXkPAPswrmyGzYuykZqjZ4v70huGxRX+nsEhcK5w8l9Tchub0CyfozrPNcVatg== X-Received: by 2002:a17:906:d106:b0:a55:5a28:cd53 with SMTP id b6-20020a170906d10600b00a555a28cd53mr124038ejz.8.1713374727835; Wed, 17 Apr 2024 10:25:27 -0700 (PDT) Received: from [10.137.0.18] (ip-86-49-229-30.bb.vodafone.cz. [86.49.229.30]) by smtp.gmail.com with ESMTPSA id m19-20020a17090679d300b00a4e03c28fd5sm8378518ejo.43.2024.04.17.10.25.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Apr 2024 10:25:26 -0700 (PDT) Message-ID: <72c40850-1dc6-41a9-ba90-e19328999ea8@enterprisedb.com> Date: Wed, 17 Apr 2024 19:25:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Performance degradation after upgrading from 9.5 to 14 To: Johnathan Tiamoh , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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