Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwxAF-0000yn-4F for pgsql-general@arkaria.postgresql.org; Wed, 29 Jan 2020 23:54:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwxAD-0001b1-Hg for pgsql-general@arkaria.postgresql.org; Wed, 29 Jan 2020 23:54:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwxAD-0001au-7z for pgsql-general@lists.postgresql.org; Wed, 29 Jan 2020 23:54:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwxA6-0005sk-A2 for pgsql-general@lists.postgresql.org; Wed, 29 Jan 2020 23:54:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00TNsCYO004058; Wed, 29 Jan 2020 18:54:12 -0500 From: Tom Lane To: Perumal Raj cc: "Peter J. Holzer" , "pgsql-generallists.postgresql.org" Subject: Re: Performance Issue after upgrade from 9 to 11 In-reply-to: References: <20200129223338.GA24207@hjp.at> Comments: In-reply-to Perumal Raj message dated "Wed, 29 Jan 2020 14:40:11 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4056.1580342052.1@sss.pgh.pa.us> Date: Wed, 29 Jan 2020 18:54:12 -0500 Message-ID: <4057.1580342052@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Perumal Raj writes: > I have used pg_upgrade which runs "analyze_new_cluster.sh" as post upgrade > activity across all DB on cluster. pg_upgrade itself won't run that script, it only creates it for you to run. > Also, I have executed manual vacuum on all individual tables. However the > behavior is same until i disable the above said parameter. Did those manual vacuums include an "analyze" option? If you in fact haven't got analyze results on your tables, that might explain your problems. autovacuum would eventually rectify the situation for larger tables, but it might never get around to small seldom-updated tables. If that's not it, I again direct your attention to the Slow_Query_Questions wiki page. That summarizes a lot of past experience with solving performance problems, and you're not endearing yourself to potential helpers by refusing to follow the process. regards, tom lane